-
Notifications
You must be signed in to change notification settings - Fork 759
[css-viewport] [cssom-view-1] Add a definition of the zoom CSS property
#9699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
zoom CSS propertyzoom CSS property
fantasai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick pass on markup.
Thanks! |
|
@emilio how close is this to being merged? If it can get merged by Tues 23 I can include it in the Thurs 25 FPWD. |
emilio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
Reverts #26631 This got specced: w3c/csswg-drafts#9699 I left msZoom because it seems plausible someone will still be using it for backwards compat.
Reverts #26631 This got specced: w3c/csswg-drafts#9699 I left msZoom because it seems plausible someone will still be using it for backwards compat. DiffTrain build for [19c7c29](19c7c29)
Reverts facebook#26631 This got specced: w3c/csswg-drafts#9699 I left msZoom because it seems plausible someone will still be using it for backwards compat.
This PR resolves #9644, #9442, #9398 and #9397.
In particular, it defines zoom visual semantics as follows:
<iframe>elementCSSOM:
getBoundingClientRect,getClientRectsandIntersectionOserverreturn rects that include zoomoffsetParenthas a new quirk (stopping at ancestors with non-defaultzoom) that is analogous to what CSS transform doesoffsetTopexcludes zoom of self, just like CSS transformdevicePixelRatiois affected by zoom inherited from an ancestor frameWeb compat analysis: the above is what is already implemented in WebKit and Chromium browsers, except:
getBoundingClientRect,getClientRectsandIntersectionOserverare unzoomedfont-sizeare unaffectedBlink plans to make the above 3 compat-affecting changes soon, and I expect them to be web compatible.
A working design doc is here.