[csswg-drafts] [css-color-5] Undefined Hue angle when interpolating from neutrals (#4928)

svgeesus has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-color-5] Undefined Hue angle when interpolating from neutrals ==
[Noticed by Mike Bostock](https://observablehq.com/d/3cef25e76ec972cf) in the context of D3, but applicable to the color modification functions in Color5, too:

> When you interpolate two colors in HCL colorspace, if one of the colors has undefined chroma or hue, the interpolator uses the chroma or hue from the opposite color. This can sometimes result in out-of-gamut colors that cannot be displayed in RGB colorspace. You may therefore wish to use Lab colorspace instead, or to specify the chroma explicitly to disable inheritance.

There are [lots of helpful examples](https://observablehq.com/d/3cef25e76ec972cf)




Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4928 using your GitHub account

Received on Tuesday, 7 April 2020 15:38:40 UTC