Closed Bug 1912241 Opened 1 month ago Closed 26 days ago

@scope :scope doesn't work in shadow dom

Categories

(Core :: CSS Parsing and Computation, defect, P3)

Firefox 131
defect

Tracking

()

VERIFIED FIXED
131 Branch
Tracking Status
firefox131 --- verified
firefox132 --- verified

People

(Reporter: 709922234, Assigned: dshin)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0

Steps to reproduce:

https://codepen.io/mantou132/pen/rNEOXKV

Actual results:

"Blue" not blue

Expected results:

"Blue" is blue

Blocks: @scope
Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core
See Also: → 1908279
Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(dshin)
Priority: -- → P3
Summary: @scope :scope::part() doesn't work in shadow dom → @scope :scope doesn't work in shadow dom
Assignee: nobody → dshin
Status: NEW → ASSIGNED
Pushed by dshin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/754963e61be2
Correctly refer to current matching context's shadow root while matching implicit scopes. r=firefox-style-system-reviewers,emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/47724 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 26 days ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
Upstream PR merged by moz-wptsync-bot
Flags: needinfo?(dshin)

Reproducible on a 2024-08-08 Nightly build on Windows 10( with layout.css.at-scope.enabled set on true) using the testcase from Comment 0.
Verified as fixed on Firefox 131.0b5 and Firefox Nightly 132.0a1 on Windows 10, Ubuntu 22, macOS 14.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: