Re: [css-animations] What happens if a @keyframes rule is added after the fact?

On 2014/07/18 5:57, Sylvain Galineau wrote:
> Btw, the latest update is here https://dvcs.w3.org/hg/csswg/rev/406b08f4fcbc
>
> It adds a clarification at the end of that paragraph following a question from Simon. Namely, if your @keyframes rule was empty and you later add style rules in it, does it cause the animation to start from the beginning? The answer was no i.e. no different from programmatically adding/remove style rules from any other @keyframes rule -> nothing gets restarted. (Though a running animation may be impacted). You OK with that?

Yes, that's right. If a @keyframes rule is empty, an animation pointing 
to it still runs so adding style rules to it is identical to any other 
dynamic change to the rule. Your edits look fine to me.

Thanks Sylvain,

Brian

Received on Friday, 18 July 2014 00:21:49 UTC