8000 [css-sizing] Is the last remembered size recorded if there is size containment in a single axis? · Issue #7529 · w3c/csswg-drafts · GitHub
Skip to content 8000

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

Open
@Loirooriol

Description

@Loirooriol

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 ([css-sizing] Last remembered size relies on unclear contain-intrinsic-size: auto #7516).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Tuesday

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions