Closed Bug 1790886 Opened 3 years ago Closed 2 years ago

Update container query WPTs to match recent CSSWG behavior

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: dshin, Assigned: emilio)

References

(Blocks 1 open bug, )

Details

Attachments

(2 files)

Relevant WPT test here

As per the spec: "Style rules applying to a query container’s shadow-including descendants can be conditioned by querying against it, using the @container conditional group rule. [...] For selectors with pseudo elements, query containers can be established by the shadow-including inclusive ancestors of the ultimate originating element."

We seem to be using flat tree traversal for our container lookup.

Summary: Container Query Should Not Match Query Containers in Shadow DOM → Container Query Matches Containers inside Shadow DOM When It Shouldn't

Seems that the resulting query container can differ within one container query, depending on the inner rules?

Yeah, this one is one I'm not convinced about, tbh. Seems weird that the spec is using something else than the flat tree (since CSS operates on the flat tree usually). I need to go through the spec issues that made the editors make that decision.

The severity field is not set for this bug.
:dholbert, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dholbert)

Marking this S3 for now, pending any further investigation; ni? emilio as a reminder to follow up comment 2.

Severity: -- → S3
Flags: needinfo?(dholbert) → needinfo?(emilio)
Duplicate of this bug: 1797709
Flags: needinfo?(emilio)
Summary: Container Query Matches Containers inside Shadow DOM When It Shouldn't → Update container query WPTs to match recent CSSWG behavior
Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bc97304e5b3d Fix container query WPT tests to reflect recent WG resolution. r=jwatt
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/46594 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 128 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: