[csswg-drafts] [css-color-4] rgb-to-hsl source code produced hue NaN when rgb values are equal (#8304)

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

== [css-color-4] rgb-to-hsl source code produced hue NaN when rgb values are equal ==
The souce code in [Converting sRGB Colors to HSL](https://w3c.github.io/csswg-drafts/css-color-4/#rgb-to-hsl) (or file css-color-4/rgbToHsl.js) produced `hue` as `NaN` when `max` equals to `min`. it should be 0 in this case.



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


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

Received on Thursday, 12 January 2023 07:38:45 UTC