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

For the question in the OP, this is a dupe of #2880.

`type1 { &type2 {...}}` is indeed perfectly valid, equivalent to `type2:is(type1) {...}`. It won't match anything, but that's fine.

`svg { &|rect {} }` is also valid, equivalent to `|rect:is(svg)` - it only matches an element which is an `<svg>` and is a `<rect xmlns="">`, which again won't match anything, but that's still fine. ^_^

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


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

Received on Tuesday, 10 January 2023 20:47:35 UTC