The CSS WG resolved to add if() to CSS, but that won’t be in browsers for a while. What are our options in the meantime? A couple days ago, I posted about the recent CSS WG resolution to add an if() function to CSS. Great as it may be, this is still a long way off, two years if everything goes super smoothly, more if not. So what can you do when you need conditionals right now? You may be pleased
![Inline conditionals in CSS, now? • Lea Verou](https://cdn-ak-scissors.b.st-hatena.com/image/square/0b61faa1e185302ad3cb2c5cbece0d4aa7daa762/height=288;version=1;width=512/https%3A%2F%2Flea.verou.me%2Fblog%2F2024%2Fcss-conditionals-now%2Fimages%2Fcallouts.png)