Re: [csswg-drafts] [css-nesting-1] Syntax Invites Errors (#7834)

> It will not allow BEM style selector concatenation 

Right, BEM-style concatenation was always a mistake and will never be part of CSS. However, anyone not using BEM or similar (or using a preprocessor with a similar syntax that doesn't have that feature) will be fine.

> and it will not match the same elements when complex selectors are involved and & is not part of the first compound selector.

I don't understand what you mean by this. `.foo { .bar & {...} }` will match the same elements in both contexts (equivalent to `.bar .foo`).

> It also limits future combinators and selector syntax because the ambiguity goes both ways.

I'm not sure I understand what you mean. We can continue to innovate in any way that doesn't make properties start with a non-ident (already probably necessary) or rules start with idents.  All your examples, and all similar ones with new selectors or combinators, will be fine in the future.

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


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

Received on Tuesday, 11 October 2022 22:01:52 UTC