Adam Argyle@nerdy.dev25 July#CSS infinity use cases nerdy.dev/css-infinity...nerdy.devCSS Infinity Use CasesSome practical, some wild51253
CSS by T. Afif@css-only.dev25 JulyI don't get the "Bools" use case. The "--active" is already set to be 0 or 1 (same as "--on") ๐ค12
CSS by T. Afif@css-only.dev25 JulyOk I got the idea. It reminds me a few clamp() I was using as "toggles" between two random values which is similar to your idea.13
CSS by T. Afif@css-only.dev25 Julybtw, now I would express them using sign() ex: --solo: max(sign(2 - sibling-count()), 0); but still the infinity trick can be handy in many situations.6