Closed Bug 1730763 Opened 3 years ago Closed 2 years ago

CSS containment should block propagation from body to viewport

Categories

(Core :: Layout, defect)

defect

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox103 --- fixed

People

(Reporter: rune.lillesveen, Assigned: emilio)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36

Steps to reproduce:

Tests like [1] fail in Gecko. The css-contain spec[2] has been changed after the CSSWG resolution in [3] stopping propagation from body to viewport for non-none used containment on root and body.

[1] https://wpt.fyi/css/css-contain/contain-body-bg-001.html fail in Gecko.
[2] https://drafts.csswg.org/css-contain-1/#c3
[3] https://github.com/w3c/csswg-drafts/issues/5913

Actual results:

WPT tests failed

Expected results:

WPT tests passed

The Bugbug bot thinks this bug should belong to the 'Core::Layout' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Layout
Product: Firefox → Core

Hey Daniel! Does this seem like something Gecko would want to ship? Rune has sent an Intent to Ship for Chromium @ https://groups.google.com/a/chromium.org/g/blink-dev/c/LYuQvgjLhe0.

Flags: needinfo?(dholbert)

Sure, makes sense to ship this change. Hopefully I or somebody can get to it ~soon.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: -- → S3
Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/392445118046
Fix containment and body-to-root propagation. r=dholbert
Pushed by emilio@crisal.io:
https://hg.mozilla.org/integration/autoland/rev/350982d1a44d
Fix typo that causes some reftests to fail.
Attachment #9281168 - Attachment description: Bug 1730763 - Fix containment and body-to-root propagation. r=#layout,dholbert → Bug 1730763 - Fix containment and body-to-root propagation. r=dholbert
Flags: needinfo?(emilio)
Flags: needinfo?(dholbert)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d70914c7f1f3
Fix containment and body-to-root propagation. r=dholbert

Backed out changeset d70914c7f1f3 (Bug 1730763) for causing web-platform reftest failures on direction-propagation-body-contain-root.html.
Backout link
Push with failures <--> Wr2
Failure Log

Flags: needinfo?(emilio)

Looks like some more unexpected passes (hooray!), so there are just some more .ini files to remove, probably.

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a5403b470ac6
Fix containment and body-to-root propagation. r=dholbert
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: