Re: [csswg-drafts] [web-animations-1] Current time calculation has odd interaction with ScrollTimeline (#2075)

I think we effectively have the behavior of B in the spec now for playing an animation:

In the procedure to [play an animation](https://www.w3.org/TR/web-animations-1/#playing-an-animation-section) step 5 sets the seek time to either 0 or effect end (based on playbackRate), and then step 6 sets the start time to seek time. This should correctly handle the case outlined in the OP.

Note that we do still preserve the current time (which would adjust the start time) when [setting the playback rate](https://www.w3.org/TR/web-animations-1/#setting-the-playback-rate-of-an-animation). If we think that the intent for updating the playback rate on a scroll linked animation is to make the effect progress faster or slower with the original timing then perhaps we should update this procedure as well to not update the current time for such animations.

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


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

Received on Thursday, 11 August 2022 13:01:17 UTC