Re: [csswg-drafts] Revisiting standardization of the `zoom` property (#5623)

I discovered the odd quirk of zoom not inheriting that I was thinking of after the fact. Descendant frames reset the zoom rather than getting the zoomed layout from the iframe element, e.g.

https://jsbin.com/jibiwev/4/edit?html,output

Both of the frames in this example have the same zoom on their contents despite the top one being within a `zoom: 2` styled ancestor. I think this is just an implementation quirk because we set the browser zoom as the zoom on the root of each frame so we don't want to scale up the frame by the browser zoom again - but more reasonable behavior would be for the frame's contents to be scaled by the zoom applying to its `iframe` element. We can avoid double applying the browser zoom by only applying it to the root frame.

-- 
GitHub Notification of comment by flackr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5623#issuecomment-1646199446 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 21 July 2023 20:21:21 UTC