The new if() function in CSS has landed in the latest Chrome
May 29, 2025 — CSS is kinda-sorta becoming a true “programming language” with each passing day. With the introduction of new features like CSS variables, the calc()
function, The pseudo-classes like :has()
and :is()
, and the ever versatile @media
queries, CSS is making it easier to write complex styles and layouts.