3 ms·
In recent years CSS has become closer to a full programming language through experimental features, for example in 2025 they added if statements and some math f
by jsjsjxxnnd 7mo ago
In recent years CSS has become closer to a full programming language through experimental features, for example in 2025 they added if statements and some math functions like modulo
https://www.simplethread.com/new-and-upcoming-css-features-i-m-excited-about/ https://www.simplethread.com/new-and-upcoming-css-features-i...
- amelius 7mo agoThe only thing missing is the ergonomics of a real programming language.
- cafebabbe 7mo agoI like the declarative nature of it. It makes it so easy to debug anything, with "simple" introspection tools. I feel that many horrors will be created when we introduce control flow to CSS. And this project kinda show how far you can go, still, if you really want it :D
- amelius 7mo agoA functional language should be able to do both.
- senfiaj 7mo agoIt's not just closer. Someone wrote an x86 emulator with CSS (it uses JS only for clock to make it more reliable). https://lyra.horse/x86css/ https://lyra.horse/x86css/ . So, CSS is officially Turing complete (which is a bit scary IMHO).