[web-animations] does rescheduling create pending task?

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?

Received on Monday, 16 March 2015 08:24:31 UTC