- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Tue, 26 Jul 2022 16:23:45 +0000
- To: public-css-archive@w3.org
Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-sizing] How does 0x0 size affect last remembered size? == > - At the time that [ResizeObserver](https://drafts.csswg.org/resize-observer-1/#resizeobserver) events are determined and delivered, if an element has [contain-intrinsic-size: auto](https://drafts.csswg.org/css-sizing-4/#propdef-contain-intrinsic-size), is capable of being a [ResizeObserver](https://drafts.csswg.org/resize-observer-1/#resizeobserver) target, but does not have [size containment](https://drafts.csswg.org/css-contain-2/#size-containment), record the current inner dimensions of its [principal box](https://drafts.csswg.org/css-display-3/#principal-box) as its [last remembered size](https://drafts.csswg.org/css-sizing-4/#last-remembered). > - At the time that [ResizeObserver](https://drafts.csswg.org/resize-observer-1/#resizeobserver) events are determined and delivered, if an element has a [last remembered size](https://drafts.csswg.org/css-sizing-4/#last-remembered) but does not have [contain-intrinsic-size: auto](https://drafts.csswg.org/css-sizing-4/#propdef-contain-intrinsic-size), remove its last remembered size. 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](https://drafts.csswg.org/resize-observer-1/#dom-resizeobservation-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. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7539 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 26 July 2022 16:23:47 UTC