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

On the off chance that implementations will help, here are the links to sRGB to HSL:

https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/platform/graphics/ColorConversion.cpp#L64

and Lab to LCH:

https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/platform/graphics/ColorConversion.cpp#L247

(We are probably getting lucky and the implementation of atan2() we are using seems to return 0 when both arguments are 0, but the c spec seems to say that it is a domain error, so we should probably add an explicit check).

in WebKit.

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


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

Received on Wednesday, 24 March 2021 02:31:55 UTC