-
Notifications
You must be signed in to change notification settings - Fork 711
[css-animations][css-transitions][web-animations] Introduce a host-syntax for color interpolation #7741
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
Comments
Right, we need to add a
I think that is already covered:
|
How about |
Should it take multiple values like other transition/animation properties? That is, should it be possible to transition color and background-color with two different methods on the same element? |
Correct. I updated my earlier comment. |
If we're supporting multiple values, that sounds like this is a per-animation property (as opposed to per-element like it is in SVG). In that case, I guess this should also be exposed on the underlying Would this same property also affect how colors are added together? Or are colors not additive? |
We resolved that colors are not additive. Values 4 is up to date there |
Realizing this issue is a dup of where there is already a resolution to add control of colorspace used for transitioning colors from May 2023 |
css-color-4 introduces the concept of a host-syntax for color interpolation. For legacy colors, interpolation happens in sRGB for back compat reasons. When the relevant specs do not specify their own host-syntax for interpolation spaces, it falls back to OKLab for non-legacy colors.
We probably want to introduce a host-syntax for transitions and animations for explicitly specifying an interpolation space, and possibly also specify if the default interpolation space depends on which color space the endpoints or keyframe values are specified in.
See also issue #7567.
@mysteryDate
The text was updated successfully, but these errors were encountered: