[wpt-sync] Sync PR 49570 - [css-nesting] Don't re-nest CSSNestedDeclarations in @scope
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox135 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 49570 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/49570
Details from upstream follow.
Anders Hartvoll Ruud <andruud@chromium.org> wrote:
[css-nesting] Don't re-nest CSSNestedDeclarations in @scope
These rules are currently always re-nested by having their selector
list re-copied. This is the correct behavior when nested inside
style rules (CSSNestingType::kNesting), but not when nested inside
@scope (CSSNestingType::kScope).Fixed: 363019839
Change-Id: I45cef3d8226ed496f0441b26c18120f6a43d74e9
Reviewed-on: https://chromium-review.googlesource.com/6070291
WPT-Export-Revision: 7804eeda5a83e953f7d441db94733966787fb24b
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 23 subtests
Status Summary
Firefox
OK : 1
PASS: 1
FAIL: 22
Chrome
OK : 1
PASS: 23
Safari
OK : 1
PASS: 21
FAIL: 2
Links
Details
Firefox-only Failures
- /css/css-cascade/scope-nesting.html [wpt.fyi]
- Implicit :scope in <scope-end>:
FAILlinked bug:Bug 1873611 - Relative selectors in <scope-end>:
FAILlinked bug:Bug 1873611 - Nesting-selector in the scope's <stylesheet>:
FAILlinked bug:Bug 1873611 - Nesting-selector within :scope rule:
FAILlinked bug:Bug 1873611 - Nesting-selector within :scope rule (double nested):
FAILlinked bug:Bug 1873611 - @scope nested within style rule:
FAILlinked bug:Bug 1873611 - Parent pseudo class within scope-start:
FAILlinked bug:Bug 1873611 - Parent pseudo class within scope-end:
FAILlinked bug:Bug 1873611 - Parent pseudo class within body of nested @scope:
FAILlinked bug:Bug 1873611 - Implicit rule within nested @scope :
FAILlinked bug:Bug 1873611 - Implicit rule within nested @scope (proximity):
FAILlinked bug:Bug 1873611 - Nested :scope inside an :is:
FAILlinked bug:Bug 1873614 - :scope within nested and scoped rule:
FAILlinked bug:Bug 1873614 - :scope within nested and scoped rule (implied &):
FAILlinked bug:Bug 1873614 - :scope within nested and scoped rule (relative):
FAILlinked bug:Bug 1873614 - Scoped nested group rule:
FAILlinked bug:Bug 1873614 - Scoped nested within another scope:
FAIL - Implicit (prelude-less) @scope as a nested group rule:
FAIL - Insert a nested style rule within @scope, &:
FAIL - Mutating selectorText on outer style rule causes correct inner specificity:
FAIL
- Implicit :scope in <scope-end>:
New Tests That Don't Pass
- /css/css-cascade/scope-nesting.html [wpt.fyi]
- Implicit :scope in <scope-end>:
FAIL(Chrome:PASS, Safari:PASS) - Relative selectors in <scope-end>:
FAIL(Chrome:PASS, Safari:PASS) - Nesting-selector in the scope's <stylesheet>:
FAIL(Chrome:PASS, Safari:PASS) - Nesting-selector within :scope rule:
FAIL(Chrome:PASS, Safari:PASS) - Nesting-selector within :scope rule (double nested):
FAIL(Chrome:PASS, Safari:PASS) - @scope nested within style rule:
FAIL(Chrome:PASS, Safari:PASS) - Parent pseudo class within scope-start:
FAIL(Chrome:PASS, Safari:PASS) - Parent pseudo class within scope-end:
FAIL(Chrome:PASS, Safari:PASS) - Parent pseudo class within body of nested @scope:
FAIL(Chrome:PASS, Safari:PASS) - Implicit rule within nested @scope :
FAIL(Chrome:PASS, Safari:PASS) - Implicit rule within nested @scope (proximity):
FAIL(Chrome:PASS, Safari:PASS) - Nested :scope inside an :is:
FAIL(Chrome:PASS, Safari:PASS) - :scope within nested and scoped rule:
FAIL(Chrome:PASS, Safari:PASS) - :scope within nested and scoped rule (implied &):
FAIL(Chrome:PASS, Safari:PASS) - :scope within nested and scoped rule (relative):
FAIL(Chrome:PASS, Safari:PASS) - Scoped nested group rule:
FAIL(Chrome:PASS, Safari:PASS) - Scoped nested within another scope:
FAIL(Chrome:PASS, Safari:PASS) - Implicit (prelude-less) @scope as a nested group rule:
FAIL(Chrome:PASS, Safari:PASS) - Insert a nested style rule within @scope, &:
FAIL(Chrome:PASS, Safari:PASS) - Insert a nested style rule within @scope, :scope:
FAIL(Chrome:PASS, Safari:FAIL) - Insert a CSSNestedDeclarations rule directly in top-level @scope:
FAIL(Chrome:PASS, Safari:FAIL) - Mutating selectorText on outer style rule causes correct inner specificity:
FAIL(Chrome:PASS, Safari:PASS)
- Implicit :scope in <scope-end>:
Description
•