-
Notifications
You must be signed in to change notification settings - Fork 669
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
[css-viewport] [cssom-view-1] Add a definition of the zoom
CSS property
#9699
Conversation
zoom
CSS propertyzoom
CSS property
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. |
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
,getClientRects
andIntersectionOserver
return rects that include zoomoffsetParent
has a new quirk (stopping at ancestors with non-defaultzoom
) that is analogous to what CSS transform doesoffsetTop
excludes zoom of self, just like CSS transformdevicePixelRatio
is affected by zoom inherited from an ancestor frameWeb compat analysis: the above is what is already implemented in WebKit and Chromium browsers, except:
getBoundingClientRect
,getClientRects
andIntersectionOserver
are unzoomedfont-size
are 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.