Closed Bug 1316587 Opened 8 years ago Closed 4 years ago

Incorrect advice regarding clientWidth and getBoundingClientRect

Categories

(Developer Documentation Graveyard :: API: DOM, defect, P5)

All
Other
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: toontalk, Unassigned)

References

()

Details

:: Developer Documentation Request Request Type: Correction Gecko Version: unspecified Technical Contact: :: Details The page states This property will round the value to an integer. If you need a fractional value, use element.getBoundingClientRect(). and yet according to https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect Starting in Gecko 12.0 (Firefox 12.0 / Thunderbird 12.0 / SeaMonkey 2.9), the effect of CSS transforms is considered when computing the element's bounding rectangle. So getBoundingClientRect will not return the non-integer width or height if a transform such as scale is in effect. Same problem with https://developer.mozilla.org/en-US/docs/Web/API/Element/clientHeight Related to Bug 1239467
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.