[csswg-drafts] [css-zoom?] Zoom and CSSOM (#9398)

emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-zoom?] Zoom and CSSOM ==
Zoom has some interesting behavior for the CSSOM, since it undoes some of its effects, but only in some APIs.

The original zoom draft by @atanassov makes sense to me:

 * You want all `getComputedStyle` things to be unzoomed, because you want to preserve `div.style.foo = getComputedStyle(div).foo` round-tripping.
 * You _might_ want some of the sizes to be unzoomed.
 * But you never want positions to be unzoomed, that makes no sense because the positions are meaningless if you cross a zoom boundary and you unzoom them.

However Blink and WebKit seem to unzoom in things like `getBoundingClientRect`, `ResizeObserver` rects, and so on. I don't think those make much sense for the same reason zooming positions doesn't make much sense.

My personal take is that, in general, the less APIs that account for zoom by unzooming, the better.

cc: https://github.com/w3c/csswg-drafts/issues/5623 @chrishtr @lilles @smfr @tabatkins @atanassov

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9398 using your GitHub account


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

Received on Friday, 22 September 2023 12:44:49 UTC