Re: [csswg-drafts] [css-nesting] Interaction with :host is unfortunate. (#9509)

That's an impl bug. The spec supports this case.

For `&`:
> The [nesting selector](https://drafts.csswg.org/css-nesting/#nesting-selector) is capable of matching [featureless](https://drafts.csswg.org/selectors-4/#featureless) elements, if they were matched by the parent rule.

For `:is(:host)`:
> A [featureless](https://drafts.csswg.org/selectors/#featureless) element does not match any selector at all, except those it is explicitly defined to match (and [logical combination pseudo-classes](https://drafts.csswg.org/selectors/#logical-combination-pseudo-classes) representing those selectors).

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


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

Received on Saturday, 21 October 2023 15:44:32 UTC