https://drafts.csswg.org/css-sizing-4/#last-remembered
At the time that ResizeObserver events are determined and delivered, if an element has a last remembered size but does not have contain-intrinsic-size: auto, remove its last remembered size.
Note: The last remembered size is state attached to the element, not any particular box generated by the element. So long as the element retains contain-intrinsic-size: auto, it will remember its last remembered size even across changes such as going to/from display: none.
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 events are determined and delivered"? Or should it be removed immediately?