[csswg-drafts] [css-sizing] Should last remembered size be removed if the element is removed from the document? (#7532)

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

== [css-sizing] Should last remembered size be removed if the element is removed from the document? ==
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.

> Note: The [last remembered size](https://drafts.csswg.org/css-sizing-4/#last-remembered) is state attached to the element, not any particular box generated by the element. So long as the element retains [contain-intrinsic-size: auto](https://drafts.csswg.org/css-sizing-4/#propdef-contain-intrinsic-size), it will remember its last remembered size even across changes such as going to/from [display: none](https://drafts.csswg.org/css-display-3/#propdef-display).

Should the last remembered size survive the removal of the element from the document?

If not, should this be checked "at the time that [ResizeObserver](https://drafts.csswg.org/resize-observer-1/#resizeobserver) events are determined and delivered"? Or should it be removed immediately?

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


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

Received on Monday, 25 July 2022 14:31:33 UTC