[css-sizing] Should last remembered size be removed if the element is removed from the document?
Nobody has claimed this yet.
- Dominant language
- Bikeshed
- Stars
- 4.9k
- Forks
- 816
- PR merge metrics
- PR metrics pending
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CSS Sizing Level 4 “last remembered” definition and the Resize Observer specification, then compare the quoted removal rule with the element-removal case. Determine whether the size should survive removal and when removal should occur; the issue is done when the specification behavior and corresponding wording are resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- documentation
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100