[wpt-sync] Sync PR 39005 - [@scope] Enable nesting features within @scope's body
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 39005 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/39005
Details from upstream follow.
Anders Hartvoll Ruud <andruud@chromium.org> wrote:
[@scope] Enable nesting features within @scope's body
This CL passes a parent rule and accompanying CSSNestingType
to the ConsumeRuleList call which handles @scope's body. This has
the following effects:
- A :scope descendant compound is implicitly inserted if the selector
is not scope-containing.- The parent selector (&) now refers to the \<scope-start>
selector list.- Relative selectors are enabled.
This CL also introduces a slightly more advanced scope guard for
cleaning up the arena: the new ArenaGuard ensures that the arena is
cleaned even if there is no outer call to ConsumeStyleRule with
parent_rule_for_nesting==nullptr.Bug: 1280240
Change-Id: Ibe6b1e40e22d535a094b0ec464ae119952b015f5
Reviewed-on: https://chromium-review.googlesource.com/4272459
WPT-Export-Revision: d242d0b05e9d30d70f5f874ba66b3300299322bb
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Updated•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/29d28cfda09a
https://hg.mozilla.org/mozilla-central/rev/1d8838822136
Description
•