RESOLVED WORKSFORME181242
Animation-duration doesn't evaluate changes to a CSS Custom Property via JavaScript in real time
https://bugs.webkit.org/show_bug.cgi?id=181242
Summary Animation-duration doesn't evaluate changes to a CSS Custom Property via Java...
Ben Frain
Reported 2018-01-03 06:40:06 PST
When specifying a `animation-duration` value as a CSS Custom Property, a change of that value via the JS API does not update the UI unless tabs/applications are switched. Current behaviour: The animation only updates when a user switches focus from Safari to something else and back Expected behaviour: The animation should 're-time' based upon the new value as it is updated. Further information: https://benfrain.com/can-css-custom-properties-update-animation-durations-on-the-fly/ Reduction: https://codepen.io/benfrain/pen/LeRMvm
Attachments
Radar WebKit Bug Importer
Comment 1 2018-01-06 16:58:51 PST
Sam Sneddon [:gsnedders]
Comment 2 2022-02-01 03:11:40 PST
This appears to work nowadays.
Note You need to log in before you can comment on or make changes to this bug.