Re: [csswg-drafts] [css-color-6] Does color-layers() need a color interpolation method (or similar)? (#13254)

@weinig I currently already treat XYZ as an RGB-ish space, so you can play with it live [here](https://facelessuser.github.io/coloraide/playground/?code=c1%20%3D%20Color%28%27%2307c7ed%27%29%0Ac2%20%3D%20Color%28%27%23fc3d99%27%29%0Ac3%20%3D%20Color%28%27%23f5d311%27%29%0A%0Afor%20mode%20in%20%28%27normal%27%2C%20%27multiply%27%2C%20%27screen%27%2C%20%27overlay%27%2C%20%27darken%27%2C%20%27lighten%27%2C%20%27color-dodge%27%2C%20%27color-burn%27%2C%20%27hard-light%27%2C%20%27soft-light%27%2C%20%27difference%27%2C%20%27exclusion%27%29%3A%0A%20%20%20%20for%20space%20in%20%28%27srgb%27%2C%20%27xyz-d65%27%29%3A%0A%20%20%20%20%20%20%20%20r1%20%3D%20Color%2elayer%28%5Bc1%2C%20c2%5D%2C%20blend%3Dmode%2C%20space%3Dspace%29%0A%20%20%20%20%20%20%20%20r2%20%3D%20Color%2elayer%28%5Bc2%2C%20c3%5D%2C%20blend%3Dmode%2C%20space%3Dspace%29%0A%20%20%20%20%20%20%20%20r3%20%3D%20Color%2elayer%28%5Bc1%2C%20c3%5D%2C%20blend%3Dmode%2C%20space%3Dspace%29%0A%20%20%20%20%20%20%20%20r4%20%3D%20Color%2elayer%28%5Bc1%2C%20c2%2C%20c3%5D%2C%20blend%3Dmode%2C%20space%3Dspace%29%0A%20%20%20%20%20%20%20%20Steps%28%5Br1%2C%20r2%2C%20r3%2C%20r4%5D%29). This isn't necessarily an endoresement that XYZ has practical value used this way, only that it at least behaves more like an RGB space, even if sometimes you can have colors outside the visible spectrum.

<img width="737" height="718" alt="Image" src="https://github.com/user-attachments/assets/47585a2a-85a1-41fa-ba75-23cd728ab073" />

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


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

Received on Tuesday, 6 January 2026 19:11:06 UTC