w3c / w3c/csswg-drafts

[css-sizing] Should last remembered size be removed if the element is removed from the document?

Open
#7,532 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-sizing-4 Needs Edits
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.