Re: [csswg-drafts] [web-animations-1] Swap start time position when playback rate is flipped on non-monotonic timeline (#8146)

> Sorry, just trying to catch up here. We're trying to flip the start time to the other end of the effect, so if it's currently zero, we set it to `end - startTime` = `end - 0` = `end`. If it's currently, at the end we set it to `end - startTime` = `end - end` = `0`.

Yes, exactly.

> That seems good. It might be worth adding an informative note to the spec explaining why we do this?

Done.

> Also, can end ever be infinity in this case? e.g. for an infinitely repeating animation?

This is a good question. Normally it would throw an error when you try to play the animation (see [4.4.8 Playing an animation Step 4](https://drafts.csswg.org/web-animations-1/#playing-an-animation-section) however I think it might be possible if you update the animation timing after creation. I've avoided using the infinity in this case.

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


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

Received on Friday, 17 March 2023 23:32:54 UTC