RESOLVED CONFIGURATION CHANGED 244242
Legacy color interpolation for animations/transition based on start color
https://bugs.webkit.org/show_bug.cgi?id=244242
Summary Legacy color interpolation for animations/transition based on start color
Rune Lillesveen
Reported 2022-08-23 02:33:31 PDT
WebKit uses the _start_ value to decide if transition should interpolate in sRGB instead of OKLab. The spec suggests that if either start _or_ end point is in a non-legacy syntax, the implementation should use OKLab. See the transition demos in: https://codepen.io/lilles/details/gOedGpL
Attachments
Radar WebKit Bug Importer
Comment 1 2022-08-30 02:34:33 PDT
Ahmad Saleem
Comment 2 2025-01-21 21:09:00 PST
@Karl - Can you test this WebKit ToT (I am unable to reproduce or unclear on expected output). WebKit ToT seems to match Chrome Canary 134.
Karl Dubost
Comment 3 2025-01-21 22:25:35 PST
Yes I'm not sure what I'm looking at too. Rune, could you explain what we should be looking at in your demo?
Rune Lillesveen
Comment 4 2025-01-22 06:38:57 PST
Out of the four interpolations for gradients and transitions, at least the three lower ones should interpolate in the same space. The upper on may interpolate in rgb space due to both end points being legacy colors. Looks like Safari is correct now.
Karl Dubost
Comment 5 2025-01-22 16:26:52 PST
Thanks Rune!
Note You need to log in before you can comment on or make changes to this bug.