Skip to content

[css-values-4][css-color-5] Define that color interpolation uses color-mix() if necessary #12292

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

Open
tabatkins opened this issue Jun 6, 2025 · 0 comments
Labels
Agenda+ css-color-5 Color modification css-values-4 Current Work

Comments

@tabatkins
Copy link
Member

Currently, Values 4 defines simply that colors are interpolated in premultiplied sRGB. Colors 5 expands on this with more details (and we should edit Values 4 to defer to it, probably). However, neither of them actually say what happens when you interpolate between currentcolor and something else.

This can't be resolves at computed-value time, so I think the best answer is that it resolves to a color-mix().

@tabatkins tabatkins added Agenda+ css-values-4 Current Work css-color-5 Color modification labels Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Agenda+ css-color-5 Color modification css-values-4 Current Work
Projects
None yet
Development

No branches or pull requests

1 participant