Closed Bug 1789754 Opened 2 years ago Closed 2 years ago

Don't record a 0x0 last rememebered size when an element with `contain-intrinsic-size:auto` becomes `display:inline`

Categories

(Core :: Layout, defect)

defect

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: dholbert, Assigned: Oriol)

References

Details

Attachments

(1 file)

CSSWG resolved to not stomp on the last-recorded size when an element goes from display:block to display:inline (for consistency with what happens when the element goes from display:block to display:none).

https://github.com/w3c/csswg-drafts/issues/7606#issuecomment-1240015961

Oriol noted in the github issue that we (and Chrome) are currently recording 0x0 as the last-remembered size in this scenario, so we need an update to align with this resolution.

(Not sure if this needs a dedicated bug or not; Oriol, feel free to dupe if you're just handling this as part of existing work on other bugs. )

Blocks: 1781045
Summary: Don't record a size update when an element with `contain-intrinsic-size` becomes `display:inline` → Don't record a size update when an element with `contain-intrinsic-size:auto` becomes `display:inline`

Should be quite straightforward, with just an edge case to consider: if the 0x0 size is not recorded due to display: inline, and later the element becomes display: block with size 0x0, then the last remembered size should be recorded even if a ResizeObserver wouldn't notify the change.

Assignee: nobody → oriol-bugzilla
Status: NEW → ASSIGNED
Summary: Don't record a size update when an element with `contain-intrinsic-size:auto` becomes `display:inline` → Don't record a 0x0 last rememebered size when an element with `contain-intrinsic-size:auto` becomes `display:inline`
Severity: -- → S3
Pushed by oriol-bugzilla@hotmail.com:
https://hg.mozilla.org/integration/autoland/rev/0e0fa244516a
Don't record last remembered size for non-replaced inlines. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/35860 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: