Post

I don’t like how the #CSS property value space is flooded with more and more (nested) pairs of parentheses from functions. For instance, instead of: property: valA; property: if( style(condition): valB; else: valA ); I would have preferred: property: valA; property: valB !when style(condition);

developer.mozilla.orgif() CSS function - CSS | MDNThe if() CSS function allows different values to be set for a property depending on the result of a conditional test. The test can be based on a style query, a media query, or a feature query.

0 reposts0 likes

No replies yet.