Re: [csswg-drafts] [css-nesting-1] Invalid nested selectors (#7503)

I did not asked for how to handle invalid nested style rules. I would like to know if a selector of a nested style rule that would be invalid when desugared, should be invalid. Eg. `::before { &:root {} }` is equivalent to `::before:is(:root)`, which is invalid.

`svg { &|rect {} }` equivalent to `|rect:is(svg)` is very surprising. `&` replaces a namespace prefix but it is interpreted as a type selector?

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


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

Received on Wednesday, 11 January 2023 05:19:07 UTC