Re: [csswg-drafts] [css-nesting-1] Invalid nested selectors for a pseudo-element selector (#7503)

Changing the title to broaden the topic with the following cases:

```css
type { &type {} }
.subclass { &type {} }
```

The first can only be invalid, even when expanded using `:is()`.

The latter would be valid only if it is expanded using `:is()`.

> The nesting selector can be desugared by replacing it with the parent style rule’s selector, wrapped in an `:is()` selector.

This currently appear in a note. Maybe it should be normative?

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


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

Received on Tuesday, 29 November 2022 08:45:18 UTC