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

> > Now we need to specify aaalll the math between none and other values. Not looking forward to that...
> 
> I mean, it's identical to the math y'all were planning to write (or have already written in Color 4, afaict) between NaN and the other values. ^_^ Afaict, it's just "if you're pairing it with another color, for any reason, take the other color's channel; otherwise, treat it like 0deg", right?

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

> (And then, while we're here, we can maybe do the same with chroma for black and white, like d3.js does?)

No objections to that from me.

-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6107#issuecomment-811354200 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:06:01 UTC