Re: [csswg-drafts] [web-animations-1] Define animation replacing behavior (#3833)

> I'm a little unclear what the state of a removed animation is, i.e. can it be replayed? retargeted? Does it's replace state change if it is?

The replace state is part of the animation model so it's entirely orthogonal to any timing. All it means is that:
1. Its effect(s) won't contribute to the effect stack(s) of their target elements.
1. It won't be returned from `getAnimations()`

So:
* A removed animation can be replayed and will dispatch the appropriate events etc. It just won't have any affect on style.
* It can be retargeted.
* It won't change replace state when it is retargeted. The only thing that can change its replace state once it is `removed` is calling `persist()`.

I have a few tests ([1](https://hg.mozilla.org/try/rev/315ce410dd99a435c29b3788ca92e74bd33767d1#l5.2), [2](https://hg.mozilla.org/try/rev/f2477993a04a9c0056d702a44e84f64eed528f37#l6.3), [3](https://hg.mozilla.org/try/rev/3869f7e3aa65fd7adc11610c17e24bc3864cae39#l7.3)) for these things that may or may not be useful in understanding the behavior.

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

Received on Friday, 3 May 2019 04:08:21 UTC