News for hackers. Stuff that matters.
Re:WebKit Supports Nested CSS by somishere on Thursday February 16, 2023 @02:33AM (#34816043)
Sanity has prevailed! Great work from the WebKit team, leading the way here. Not to mention great solve on the `color: blue` fiasco. Balances an edge-case compromise nicely, and leaves it open to future improvements. Bravo.
Re:WebKit Supports Nested CSS by Epskampie on Thursday February 16, 2023 @03:43AM (#34816466)
What is the `color: blue` fiasco?
Re:WebKit Supports Nested CSS by somishere on Thursday February 16, 2023 @07:29AM (#34817827)
Writing from memory here, please correct as required, but one of the major concerns with scss style syntax was that it was "undesirable" for interpreters to differentiate between tag names and properties due to legacy CSS token-parsing techniques and the performance concerns around "infinite" lookahead ("controversial"). `color` is one example (possibly the only example) of CSS property / tag name overlap which makes the scss style syntax `tag { color:hover { color:blue } }` slightly ambiguous and potentially tricky to parse.
Re:WebKit Supports Nested CSS by TabAtkins on Thursday February 16, 2023 @12:11PM (#34821592)
Fwiw, while I deeply appreciate WebKit supporting the proposal as well, the editors of the Nesting spec are Googlers and the Chrome impl happened at the same time.
Re:WebKit Supports Nested CSS by somishere on Thursday February 16, 2023 @03:51PM (#34825890)
Worth a lot! Thanks for clarifying. You need to give your product manager / blog team a kick :)