Skip to content

[css-sizing] How does 0x0 size affect last remembered size? #7539

@Loirooriol

Description

@Loirooriol

This seems designed so that it can be implemented with an internal ResizeObserver.

There is a catch, though https://drafts.csswg.org/resize-observer-1/#dom-resizeobservation-resizeobservation-target-options initializes lastReportedSizes slot to [(0,0)].

This means that observing an element with a 0x0 size will not invoke the callback. But I guess 0x0 should still be stored as the last remembered size (if the conditions hold), right? It's not happening in Chromium.

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