This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28930 - "Let list be the result of invoking getClientRects..."
Summary: "Let list be the result of invoking getClientRects..."
Status: REOPENED
Alias: None
Product: CSS
Classification: Unclassified
Component: CSSOM View (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: public-css-bugzilla
URL: https://drafts.csswg.org/cssom-view/#...
Whiteboard:
Keywords:
: 29191 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-07-09 09:46 UTC by Chris Rebert
Modified: 2016-02-02 02:04 UTC (History)
1 user (show)

See Also:


Attachments

Description Chris Rebert 2015-07-09 09:46:03 UTC
http://dev.w3.org/csswg/cssom-view/#dom-element-getboundingclientrect

[[
1. Let list be the result of invoking getClientRects() on the same element this method was invoked on.
]]


The "invoking getClientRects()" phrasing might be too vague. Is it supposed to mean simply:
```
getBoundingClientRect() {
  var list = this.getClientRects();
  ...
}
```
or instead something like:
```
magic uberprivate var _getClientRects = Element.prototype.getClientRects;

getBoundingClientRect() {
  var list = _getClientRects.call(this);
  ...
}
```
?


More concretely, is the following test expected to pass, or to fail?:
http://jsfiddle.net/cvrebert/26kszjdz/
(See its console output)
Comment 1 Domenic Denicola 2015-10-09 18:58:31 UTC
*** Bug 29191 has been marked as a duplicate of this bug. ***
Comment 2 Chris Rebert 2016-01-31 13:16:13 UTC
This is covered by a general provision stuffed in the Terminology section:
https://drafts.csswg.org/cssom-view/#terminology
[[
When a method or an attribute is said to call another method or attribute, the user agent must invoke its internal API for that attribute or method so that e.g. the author can’t change the behavior by overriding attributes or methods with custom properties or functions in ECMAScript.
]]
Comment 3 Simon Pieters 2016-02-02 02:04:22 UTC
Yep but I should still fix this in a better way, where a better way is by using named algorithms and invoking those, instead of having one API invoke another, since the current setup keeps confusing people.