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

> which are completely wrong (they're reverse-zoomed even though the origin doesn't change)

To me, this behavior makes sense. It seems that values are returned in transformed coordinate system, where `1px` unit becomes equal to `2px` in the initial (non-zoomed) coordinate system. So 8 non-zoomed pixels are equal to 4 zoomed pixels and 200 non-zoomed pixels that the zoomed element now takes up are still `100px` in the zoomed coordinate system. All CSS properties for the zoomed element, like margins, offsets etc., are set in "zoomed" pixels (e.g., to push it to the top left viewport corner, you would need to set `margin: -4px`, not `margin: -8px`), so it seems quite reasonable to measure it in the same coordinate system...

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


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

Received on Wednesday, 5 January 2022 10:01:37 UTC