Re: [csswg-drafts] [resize-observer-1] physical, rather than logical, dimensions – for images (#4005)

In #7564 we resolved to make the [last remembered size](https://drafts.csswg.org/css-sizing-4/#last-remembered) logical since ResizeObserver tracks changes in the logical size.

A way to make ResizeObserver track changes in physical size would have allowed a physical last remembered size, which I'm not sure if it would be better, but it's what @tabatkins originally had in mind.

I guess:
 - [`ResizeObserverOptions`](https://drafts.csswg.org/resize-observer-1/#dictdef-resizeobserveroptions) would have a new enum member with values `"logical"`, `"physical"` or `"both"` (defaulting to `"logical"`).
 - [`ResizeObserverSize`](https://drafts.csswg.org/resize-observer-1/#resizeobserversize) would have a new bool member to track whether the writing mode was vertical or horizontal. Possibly internal, and instead expose `width` and `height` getters that would map to the right size.
 - [`isActive()`](https://drafts.csswg.org/resize-observer-1/#dom-resizeobservation-isactive) would have to take the above into account.

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


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

Received on Wednesday, 17 August 2022 20:24:38 UTC