The CSS Working Group (CSSWG) has resolved to add the if() conditional to the CSS Values Module Level 5 specification. The proposal, led by Lea Verou, aims to allow styles to be applied based on conditional requirements. This conceptual feature could enable inline conditionals with selectors, transforming how styles are applied. The syntax involves specifying conditions and setting style values based on those conditions. The feature is still under development, with ongoing discussions and potential changes.
Table of contents
This isn’t a new ideaSyntaxThis is all related to style queriesConditions supporting other conditions“Can’t we already do this with [X] approach?”Happy birthday, Lea!References2 Comments
Sort: