[csswg-drafts] Pull Request: [web-animations-1] Initialize start time of scroll animations to zero (#2075)

birtles has just labeled a pull request from ogerchikov for https://github.com/w3c/csswg-drafts as "web-animations-1":

== [web-animations-1] Initialize start time of scroll animations to zero (#2075) ==
Initializing start time of scroll animations to zero is required to have animation effect progress in sync with the timeline progress.

Changes made:
* Removed responding to a newly inactive timeline section (#2080).
* Updated playing/pausing animation procedures to initialize start time to zero for finite timelines. This makes animation current time equal to scroll timeline current time or unresolved if the timeline is inactive.
* Updated pausing animation procedure to execute animation pending pause task when inactive timeline becomes active. This makes ready time resolved at the time of the execution and, as a result, produces resolved hold_time.
* Updated definition of idle play state to include check for unresolved start time. This is required so
playing animations attached to inactive timeline return "running" state. Without this change play pending animations attached to inactive timeline return "running" state, while playing animations attached to inactive timeline return "idle" state.
 

See https://github.com/w3c/csswg-drafts/pull/4842

Received on Tuesday, 12 May 2020 03:26:26 UTC