TLDR Web Dev · ARTICLES & TUTORIALS
INLINE CONDITIONALS IN CSS?
Summary from the TLDR Web Dev newsletter
The CSS Working Group is adding an if() function to CSS that will allow developers to use conditional logic directly within CSS styles. This makes it easier to apply dynamic styles based on custom properties, media queries, or feature support.