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
When document.scrollingElement == document.body (so, in quirks mode when the <body> is propagated to the viewport), things like document.body.scrollTop return the viewport scroll position etc.
zoom on body doesn't itself propagate to the viewport, so the viewport's coordinates shouldn't be affected. That's what I get in Chrome and Safari, if I understand correctly.
A clarification would be great, or at least making sure that there's a test, because right now reading the spec it could go one way or the other. I can try to write a test for this sometime soon.
A clarification would be great, or at least making sure that there's a test, because right now reading the spec it could go one way or the other. I can try to write a test for this sometime soon.
Ok I'll make a PR clarifying. Thanks for the test!
When
document.scrollingElement == document.body
(so, in quirks mode when the<body>
is propagated to the viewport), things likedocument.body.scrollTop
return the viewport scroll position etc.The question then becomes, with something like:
Should those coordinates be unscaled by the
<body>
zoom or not?I think Chrome's behavior is not unzooming them, which makes sense to me.
cc @chrishtr @smfr
The text was updated successfully, but these errors were encountered: