Closed
Bug 1259708
Opened 8 years ago
Closed 6 years ago
Element.getBoundingClientRect: CSS transforms consideration legit ?
Categories
(Developer Documentation Graveyard :: API: DOM, defect, P5)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: mishal153, Unassigned)
Details
:: Developer Documentation Request Request Type: Correction Gecko Version: unspecified Technical Contact: :: Details MDN documentation (https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect) says "the effect of CSS transforms is considered when computing the element's bounding rectangle." However the spec (https://www.w3.org/TR/css-transforms-1/#intro) says "Transformations do affect the visual layout on the canvas, but have no affect on the CSS layout itself. This also means transforms do not affect results of the Element Interface Extensions getClientRects() and getBoundingClientRect()" Is this an intentional deviation or do I have n incorrect understanding of this ?
Comment 1•8 years ago
|
||
The change was intentional. It was made and discussed in bug 591718. roc posted to the www-style mailing list, no one objected. From the bug it sounds like at the time all other browsers also took transforms into account. So I guess the spec never got updated?
Comment 2•6 years ago
|
||
This page no longer refers to transforms.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•