Re: [csswg-drafts] [web-animations-2] Setting the timeline to null during play vs. play-pending (#6412)

Setting the timeline of a pending animation in general shouldn't remove the pending play task as the animation's start time will now depend on the new timeline. Setting the timeline to null should be similar to setting a resolved start time since we know that the animation is not going to start, i.e. it should cancel any the pending play task and perhaps reject the finish promise similar to calling cancel on the animation. The only way a null timeline animation should have a hold time and product an active effect is if it was paused.

Your demo should result in getComputedStyle(div).width returning 0px with the animation being considered inactive, regardless of timing.

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


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

Received on Tuesday, 8 November 2022 21:40:16 UTC