Bug 250379
| Summary: | [css-nesting] Implement top-level nesting selector | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Matthieu Dubet <m_dubet> |
| Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Matthieu Dubet
The css-nesting-1 spec allows nesting selector in top-level rules, which should match nothing.
https://www.w3.org/TR/css-nesting-1/#nest-selector
We should support it (maybe by transform it to the equivalent :not(*) selector)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/104073866>
Matthieu Dubet
The editor draft of the CSS Nesting spec changed:
When used in the selector of a nested style rule, the nesting selector represents the elements matched by the parent rule. When used in any other context, it represents the same elements as :scope in that context (unless otherwise defined).
https://drafts.csswg.org/css-nesting/#nest-selector
Matthieu Dubet
Pull request: https://github.com/WebKit/WebKit/pull/11366
EWS
Committed 261739@main (20329b62061b): <https://commits.webkit.org/261739@main>
Reviewed commits have been landed. Closing PR #11366 and removing active labels.