Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-color-4] Consider adding support for interpolation in the srgb-linear color space #6836

Closed
weinig opened this issue Nov 27, 2021 · 1 comment

Comments

@weinig
Copy link
Contributor

weinig commented Nov 27, 2021

Now that CSS Color Module 4 has support for linear sRGB, https://drafts.csswg.org/css-color/#predefined-sRGB-linear, I think it would be useful to extend the set of color spaces that can be used for interpolation to include it, https://drafts.csswg.org/css-color/#typedef-rectangular-color-space.

The main use case I can think of is consistent behavior with other parts of the stack (such as WebGL/WebGPU) that might be using linear sRGB.

@svgeesus
Copy link
Contributor

This makes sense. The results should be identical to interpolating in xyz-d65 but indeed, srgb-linear was primarily added for consistency with other parts of the open web platform so it makes sense to allow it here too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants