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

> When would we like to treat it as 0deg? Should calc(none + 10deg) return 10deg? I think it should return none.

That would presumably be an error; `none` isn't a valid keyword in math functions.

If you *implicitly* referenced a missing value, like in a relative color function `lch(from gray l c calc(h + 20deg))`, then I assume it would be an "infectious" `none`, and the hue would end up being missing.

(That implies, by itself, that the chroma and lightness can be missing as well, since you can use `h` in their calculations, so defining missing channels in general terms, rather than being hue-specific, would probably be good.)

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


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

Received on Wednesday, 31 March 2021 19:43:09 UTC