Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Updated CSS Nesting Syntax to Avoid Common Copy-and-Paste Errors (github.com/w3c)
1 point by clairity on Nov 9, 2022 | hide | past | favorite | 1 comment


looks like css nesting is really coming! "Chromium as of 109.0.5394.0 is updated with the new syntax."[0]

the syntax has been finalized to allow an implied "&" so that it matches scss more closely than the initially selected syntax, to avoid copy-and-paste errors when moving from scss to plain css with nesting.

found this via "A Brief and Probably Only Partially Correct History of CSS Nesting"[1]

[0]: https://github.com/w3c/csswg-drafts/issues/7834#issuecomment...

[1]: https://chriscoyier.net/2022/11/09/a-brief-and-probably-only...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: