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)
<rdar://problem/104073866>
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
Pull request: https://github.com/WebKit/WebKit/pull/11366
Committed 261739@main (20329b62061b): <https://commits.webkit.org/261739@main> Reviewed commits have been landed. Closing PR #11366 and removing active labels.