You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Element.getBoundingClientRect() and Element.getClientRects() do not take scrolling into account. #9651
Activity
jdm commentedon Feb 15, 2016
@peterjoel Can you link to the part of the specification that suggests that they should?
peterjoel commentedon Feb 15, 2016
I was just going by the behaviour in Safari, Firefox and Chrome. The spec isn't incredibly clear, but it says:
If you follow the link on "transforms" and keep following the linked documents to this, you find:
Which seems to suggest that the transformations are relative to the viewport, not the document.
mrobinson commentedon Sep 19, 2025
This was fixed by #37871, I believe.