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

Why not adopt the SCSS syntax entirely ? 

I know it could cause parsing issue of existing CSS, but we already had a similar problem with HTML5.

Just add a declaration at the top of the file like we do for charset to tell the browser to parse this file differently ? 

Something like this:
```
@nesting 

.my-class {
  nested-tag {}
  .nested-class {}
}
’’’


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


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

Received on Thursday, 3 November 2022 05:25:41 UTC