3 ms·
Updated CSS Nesting Syntax to Avoid Common Copy-and-Paste Errors
- clairity 4y agolooks 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-1298270970 https://github.com/w3c/csswg-drafts/issues/7834#issuecomment... [1]: https://chriscoyier.net/2022/11/09/a-brief-and-probably-only-partially-correct-history-of-css-nesting/ https://chriscoyier.net/2022/11/09/a-brief-and-probably-only...