Re: [csswg-drafts] [css-nesting-1] Should the parent rule be considered when validating a selector containing `&`? (#9943)

It *is* well-specified - nothing makes it invalid, so there's no reason to assume it's invalid.

> I am also not sure I understand the reasons why `::before:first-child {}` should be considered invalid, instead of as matching nothing.

Historical mistake. Selector validity in general should have been done quite differently, but we're stuck with it.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9943#issuecomment-1941952633 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 13 February 2024 16:29:17 UTC