News for hackers. Stuff that matters.
Re:Help pick a syntax for CSS nesting by tambourine_man on Wednesday July 27, 2022 @02:09PM (#32254191)
We kind of had variables with preprocessing before. Or a simple sed ‘s/str/replace’.

But true support is convenient. One of the best places to write CSS is the browser’s dev tools. Having CSS variables work there is awesome.

If it can be parsed almost as fast, I say go for it.

Re:Help pick a syntax for CSS nesting by account42 on Thursday July 28, 2022 @03:04AM (#32261285)
Those are constants. CSS variables are more powerful than that since they can be changed at runtime which allows e.g. minesweeper in pure HTML and CSS: https://github.com/propjockey/css-sweeper