- From: Isaac Muse via GitHub <sysbot+gh@w3.org>
- Date: Tue, 22 Aug 2023 15:42:50 +0000
- To: public-css-archive@w3.org
@romainmenke our results match 🙂. Live example [here](https://facelessuser.github.io/coloraide/playground/?code=print%28%27%3D%3D%3D%3D%20Case%201%20%3D%3D%3D%3D%27%29%0Acolor%20%3D%20Color%2einterpolate%28%5B%27oklch%28100%25%2050%25%2060deg%29%27%2C%20%27oklch%2850%25%2050%25%200deg%29%27%5D%2C%20space%3D%27oklch%27%2C%20out_space%3D%27oklch%27%29%280%2e5%29%0ARow%28%5Bcolor%2eto_string%28percent%3DTrue%29%2C%20color%2econvert%28%27srgb%27%29%2eto_string%28fit%3D%27oklch-chroma%27%29%5D%29%0A%0Aprint%28%27%3D%3D%3D%3D%20Case%202%20%3D%3D%3D%3D%27%29%0Acolor%20%3D%20Color%2einterpolate%28%5B%27oklch%2875%25%200%25%2060deg%29%27%2C%20%27oklch%2875%25%2050%25%200deg%29%27%5D%2C%20space%3D%27oklch%27%2C%20out_space%3D%27oklch%27%29%280%2e5%29%0ARow%28%5Bcolor%2eto_string%28percent%3DTrue%29%2C%20color%2econvert%28%27srgb%27%29%2eto_string%28fit%3D%27oklch-chroma%27%29%5D%29%0A%0Aprint%28%27%3D%3D%3D%3D%20Case%203%20%3D%3D%3D%3D%27%29%0Acolor%20%3D%20Color%2einterpolate%28%5B%27oklch%2875%25%200%25%20none%29%27%2C%20%27oklch%2875%25%2050%25%200deg%29%27%5D%2C%20space%3D%27oklch%27%2C%20out_space%3D%27oklch%27%29%280%2e5%29%0ARow%28%5Bcolor%2eto_string%28percent%3DTrue%29%2C%20color%2econvert%28%27srgb%27%29%2eto_string%28fit%3D%27oklch-chroma%27%29%5D%29%0A%0Aprint%28%27%3D%3D%3D%3D%20Case%204%20%3D%3D%3D%3D%27%29%0Acolor%20%3D%20Color%2einterpolate%28%5B%27rgb%28255%2C%20255%2C%20255%29%27%2C%20%27rgb%28180%2C%206%2C%2095%29%27%5D%2C%20space%3D%27oklch%27%2C%20out_space%3D%27oklch%27%29%280%2e5%29%0ARow%28%5Bcolor%2eto_string%28percent%3DTrue%29%2C%20color%2econvert%28%27srgb%27%29%2eto_string%28fit%3D%27oklch-chroma%27%29%5D%29%0A%0Aprint%28%27%3D%3D%3D%3D%20Case%205%20%3D%3D%3D%3D%27%29%0Acolor%20%3D%20Color%2einterpolate%28%5B%27oklch%2875%25%200%25%2060deg%29%27%2C%20%27oklch%2875%25%2050%25%200deg%29%27%5D%2C%20space%3D%27lch%27%2C%20out_space%3D%27oklch%27%29%280%2e5%29%0ARow%28%5Bcolor%2eto_string%28percent%3DTrue%29%2C%20color%2econvert%28%27srgb%27%29%2eto_string%28fit%3D%27oklch-chroma%27%29%5D%29) The only thing that could change this is if CSS requires an OkLCh (or any cylindrical space) hue to become missing during interpolation even if an explicit hue is defined and chroma is zero. I don't recall exactly what CSS specifies here, and isn't something I would automatically do in a generic color library by default, but if browsers need to do this, or need to in the future, obviously some results would be different after normalizing those hues to "missing". <img width="1326" alt="Screenshot 2023-08-22 at 9 29 39 AM" src="https://github.com/w3c/csswg-drafts/assets/1055125/bad4353d-a7f8-46ea-9d46-2dc0a3ee36eb"> -- GitHub Notification of comment by facelessuser Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8609#issuecomment-1688460947 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 22 August 2023 15:42:53 UTC