-
…in reply to @LeaVerou
LeaVerou Okay I tested it this time…
--min: 2px; --val: 1vw; --gap: calc( max( var(--val) - var(--min) * 2, calc(var(--min) * -1) ) + var(--min));
I think?
-
…in reply to @ckirknielsen
LeaVerou Wait, nope. If --val == 3px, it yields 1px. This is a good question. 😅