When setting the target effect of an animation, the spec says if animation has 
a pending task, it should be rescheduled to run as soon as the animation is 
ready. My question is, after the rescheduling, should the animation still be 
considered as having a pending task?

And once the animation is ready, will the animation run two tasks, one for the 
rescheduled pending task created by previous effect, and another created by the 
current effect?

Some example code:

```js
let effect1 = new KeyframeEffect(…);
let effect2 = new KeyframeEffect(…);
let anim = new Animation(effect1);
anim.play();
anim.effect = effect2;
anim.timeline = document.timeline;
```

Should effect1 be updated in this case?

Reply via email to