Re: [csswg-drafts] [css-nesting-1] Clearer definition of “nest-containing” (#7972)

> `& appearing *anywhere* in the selector`

Sorry, but I am confused.

According to https://github.com/w3c/csswg-drafts/issues/8310#issuecomment-1383215582, `&` must replace a `<simple-selector>`.

According to https://github.com/w3c/csswg-drafts/issues/7503#issuecomment-1377827748, `&` can replace a sub-production of `<simple-selector>`.

According to the above comment, it can match anything? `!&` is not a valid `<relative-selector>`. 

The selector of the nested style rule is nest-containing if it contains `&` even as part of an invalid `<relative-selector>`? And in a comment? Or escaped (thus matching `<ident>`, thus matching `<type-selector>`)?

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


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

Received on Friday, 27 January 2023 12:59:03 UTC