- From: Isaac Muse via GitHub <sysbot+gh@w3.org>
- Date: Wed, 08 Mar 2023 23:12:37 +0000
- To: public-css-archive@w3.org
> I think if you interpolate colors in HSL where the endpoints are out of gamut, you get what you get honestly. That's a fair statement. Currently, saturation only goes negative when lightness goes negative or when in the HDR range. The only way it could accidentally go out is if you are converting from one of the newer color spaces like Oklab, OkLCh and maybe Lab and LCh which is not always very precise at the edges. ```js > let color = new Color("oklch", [1, 0,0]).to('hsl').coords.toString(); "223.8135974487593,-172.5242095991637,100.00000421453782" ``` If needed, this could be managed by just clamping lightness to the SDR range during the HSL conversion if it exceeds those limits. None of the current color spaces are meant for HDR use at this time anyways. -- GitHub Notification of comment by facelessuser Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8444#issuecomment-1461014817 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 8 March 2023 23:12:39 UTC