2 ms·
Yeah I think it doesn’t exist. In theory a solution would be something like: clamp(0,(var(--perceived-lightness) - var(--threshold)) * Infinity, 1) But mos
by dan-robertson 4y ago
Yeah I think it doesn’t exist.
In theory a solution would be something like:
clamp(0,(var(--perceived-lightness) - var(--threshold)) * Infinity, 1)
But most browsers don’t support Infinity. I assume that GitHub can find a suitably large number to put there though. (Maybe I’m wrong though because of precision issues elsewhere).
Another potential solution would be with sign but this function is also largely unsupported