RESOLVED WORKSFORME 205488
[Web Animations] CSS `animation-timing-function` not respected in `getComputedTiming()`
https://bugs.webkit.org/show_bug.cgi?id=205488
Summary [Web Animations] CSS `animation-timing-function` not respected in `getCompute...
Devin Rousso
Reported 2019-12-19 21:13:18 PST
Created attachment 386180 [details] [HTML] Reduction See attached reduction. The visual effect appears to respect the CSS `animation-timing-function`, but the JavaScript value logged from `getComputedTiming()` always shows `"linear"`.
Attachments
[HTML] Reduction (437 bytes, text/html)
2019-12-19 21:13 PST, Devin Rousso
no flags
Antoine Quint
Comment 1 2020-01-05 23:56:34 PST
This is actually correct. The "animation-timing-function" property will affect the easing value on individual keyframes, Chrome and Firefox behave the same as well. I agree this is not intuitive, but CSS Animations define that animation-timing-function is really a shorthand for defining that property on each set of keyframes, per https://drafts.csswg.org/css-animations-1/#animation-timing-function: "The animation-timing-function property describes how the animation will progress between each pair of keyframes. Timing functions are defined in the separate CSS Easing Functions module [css-easing-1]." As such, you'll get the value specified through getKeyframes(), but an actual animation-wide timing function is not something that can be set via CSS Animations properties.
Note You need to log in before you can comment on or make changes to this bug.