Closed Bug 1928695 Opened 1 year ago Closed 1 year ago

New wpt failures in /css/css-cascade/scope-specificity.html

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: wpt-sync, Assigned: dshin)

References

(Blocks 1 open bug)

Details

(Whiteboard: [wpt])

Attachments

(1 file)

Syncing wpt PR 48929 found new untriaged test failures in CI

Tests Affected

New Tests That Don't Pass

CI Results

Gecko CI (Treeherder)
GitHub PR Head

Notes

These updates will be on mozilla-central once bug 1928673 lands.

Note: this bug is for tracking fixing the issues and is not
owned by the wpt sync bot.

This bug is linked to the relevant tests by an annotation in
https://github.com/web-platform-tests/wpt-metadata. These annotations
can be edited using the wpt interop dashboard
https://jgraham.github.io/wptdash/

If this bug is split into multiple bugs, please also update the
annotations, otherwise we are unable to track which wpt issues are
already triaged. Resolving as duplicate or closing this issue should
be cause the bot to automatically update or remove the annotation.

I can reproduce the failure locally. With layout.css.at-scope.enabled set to true, this test (hosted on wpt.fyi) shows us passing 10 subtests and failing 1, with the failure reported like so:

Fail	@scope { & .b { } } and :where(:scope) .b

assert_equals: unscoped + scoped expected "2" but got "1"

The upstream PR has this note to explain itself:

The '&' selector, when it has no parent selector to draw from,
has a specificity of zero [1].

Blink already does the right thing. This CL just adds a new WPT
to enforce that behavior, and adjusts an existing tests which
expected specificity to be added.

dshin, could you take a look as part of your ongoing @scope work?

Blocks: @scope
Flags: needinfo?(dshin)
Severity: -- → S3
Assignee: nobody → dshin
Status: NEW → ASSIGNED
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5ccabf34d30e Parent selector referring to implicit scope rule does not add specificity. r=firefox-style-system-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
Flags: needinfo?(dshin)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: