Open Loirooriol opened 2 years ago
The CSS Working Group just discussed [css-sizing] How does 0x0 size affect last remembered size?
, and agreed to the following:
RESOLVED: 0x0 is not special wrt ResizeObserver or c-i-s
RESOLVED: Replace ResizeObserver editors with Oriol and Emilio
There is #3664 about 0x0 in ResizeObserver
.
This seems designed so that it can be implemented with an internal
ResizeObserver
.There is a catch, though https://drafts.csswg.org/resize-observer-1/#dom-resizeobservation-resizeobservation-target-options initializes lastReportedSizes slot to [(0,0)].
This means that observing an element with a 0x0 size will not invoke the callback. But I guess 0x0 should still be stored as the last remembered size (if the conditions hold), right? It's not happening in Chromium.