After years of developer frustration and questions on online forums, it’s finally happening: CSS is getting an if() function to apply styling when a condition is met. For the first time, developers can make logical decisions directly in stylesheets, without separate code blocks. This opens up whole new possibilities for web designers.

  • Lucy :3@feddit.org
    link
    fedilink
    arrow-up
    2
    ·
    10 days ago

    Yeah, that’s the point… CSS has conditionals now, so when will we get HTML conditionals and variables?