Re: [csswg-drafts] [css-color-4][css-values-4][web-animations-1] Behavior of additive animations of color properties is unclear (#7793)

Btw here is a demo of additive animation today: https://codepen.io/leaverou/pen/NWMzmoV

That should _definitely_ not be in CSS Values, it belongs in Color, not sure if we can still add it to Color 4 or whether it would need to go into Color 4.

The prose also needs editing, this is way too vague. In *which* premultiplied space? E.g. what do we do when adding these:

- Animation 1: LCH color transitioning to sRGB color in Lab
- Animation 2: HSL color transitioning to OKLab color in OkLCH

In which space do we add their components??
It seems reasonable it would be either Lab or OkLCH since colors are converted to these spaces throughout their interpolation. But which one? And indeed, what do we do for `<angle>` values?

I guess the most obvious, but potentially less useful thing to do would be to pick the color space of the first color, and just naively add arguments. Is there something better we could do?


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


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

Received on Tuesday, 4 October 2022 16:09:30 UTC