[csswg-drafts] [css-sizing] What happens with the last remembered size is there is no principal box? (#7527)

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

== [css-sizing] What happens with the last remembered size is there is no principal box? ==
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 [`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).

It's unclear what happens if there is no principal box.

There is a note below which says that the last remembered size survives `display: none`, so I guess it's just not recorded:

> 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, **generates a principal box**, 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).

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


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

Received on Saturday, 23 July 2022 00:26:17 UTC