[wpt-sync] Sync PR 38644 - [@scope] Make '&' in <scope-end> resolve to <scope-start>
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox113 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 38644 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/38644
Details from upstream follow.
Anders Hartvoll Ruud <andruud@chromium.org> wrote:
[@scope] Make '&' in <scope-end> resolve to <scope-start>
Instead of storing the \<scope-start> (i.e. From()) as a CSSSelectorList,
store an empty StyleRule with that same list of selectors.This allows us to pretend that \<scope-start> is the ancestor rule
for nesting purposes when matching \<scope-end>, as required by spec.The nesting selector (&) needs to work other places too, but that is
for future CLs to handle.https://drafts.csswg.org/css-nesting-1/#nesting-at-scope
Bug: 1280240
Change-Id: I52bed7537a6892746bbf638407839abbd11ba96f
Reviewed-on: https://chromium-review.googlesource.com/4274727
WPT-Export-Revision: 9a7f1b064600799bdbf47a2bcab09d53c791396d
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Assignee | ||
Comment 3•2 years ago
|
||
Assignee | ||
Comment 5•2 years ago
|
||
Comment 6•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/df022da2430d
https://hg.mozilla.org/mozilla-central/rev/cb23a8708690
Description
•