w3c / w3c/csswg-drafts

[css-sizing] Is the last remembered size recorded if there is size containment in a single axis?

Open
#7,529 4 comments 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

From https://drafts.csswg.org/css-sizing-4/#last-remembered

At the time that ResizeObserver events are determined and delivered, if an element has contain-intrinsic-size: auto, is capable of being a ResizeObserver target, but does not have size containment, record the current inner dimensions of its principal box as its last remembered size.

What if the element has contain: inline-size?

  • The dimensions are recorded as the last remembered size, as would happen with no containment.
  • The dimensions are not recorded as the last remembered size, as would happen with full size containment.
  • Only the block dimension is recorded as the last remembered block size. This would imply that the dimensions are recorded independently, and probably it should be the same when contain-intrinsic-size has auto in a single axis (#7516).

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

Read the CSS Sizing Level 4 “last remembered size” and contain-intrinsic-size sections, then compare the inline-size containment behavior with the related issue #7516 and the cited CSS Containment and ResizeObserver definitions. Done means the Working Group has resolved which dimensions are recorded and the specification wording reflects that decision.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation, web-dev
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.