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

I think & should be required in all nested selectors because it makes it clear where the parent selector is inserted and how the selectors are combined. Not requiring it leaves the reader guessing.

I believe this was a mistake in SASS and other pre-processors that we now have the opportunity to fix. Preprocessors could still support their existing syntax and output native nesting with the & inserted if they want. I think CSS should have the least ambiguous syntax possible, and leave the sugar to the preprocessors.

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


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

Received on Saturday, 8 October 2022 18:43:54 UTC