Re: [csswg-drafts] [css-color-4] Achromatic colors converted to hue-ish spaces should treat hue as "missing", not NaN (#6107)

It should be noted that there is a lot of prior art in Color libraries for using NaN for achromatic interpolation.

> `NaN` is limited to existing within the bounds of a calculation; [it gets censored to `infinity` if it would escape](https://drafts.csswg.org/css-values/#top-level-calculation) (and `infinity` then gets clamped to the actual largest value the impl supports). 

That ...seems like hugely problematic behavior that we should, at the very least, get group consensus on before we accept it as something to design other specs around. `NaN` is conceptually completely different from `Infinity`. 



-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6107#issuecomment-803018701 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 19 March 2021 18:11:41 UTC