Re: [csswg-drafts] [css-nesting-1] & representing parent elements vs parent selector (#8310)

How is `& + &` unchanged? If SASS substitutes the selector, with a parent of `.a .b`, `& + &` becomes `.a .b + .a .b`, which is different than `:is(.a .b) + :is(.a .b)` a.k.a. `.a .b + .b`.

Seems to me this happens when the parent and nested selector are complex, and the latter uses `&` after a combinator. Descendant combinators are not needed at all: `.a + .b { .c + & {} }` is `.c + .a + .b` in SASS, and `.a.c + .b` in CSS.

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


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

Received on Friday, 13 January 2023 23:00:28 UTC