3 ms·
This is missing a "if variable equals" imho. Right now it seems like pure syntactic sugar for a media query.
by silverwind 10mo ago
This is missing a "if variable equals" imho. Right now it seems like pure syntactic sugar for a media query.
- ramesh31 10mo ago>This is missing a "if variable equals" imho. This is exactly what it does not need. SASS style conditional CSS is a complete nightmare to maintain. The declarative nature is one of its greatest strengths.
- bawolff 10mo agoDid you guys read the docs? It literally does have this albeit the syntax is a bit odd: if(style(--foo: bar): baz) Is how you test if variable --foo is equal to "bar" See https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/if https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/V...