W3C home > Mailing lists > Public > www-style@w3.org > July 2014

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

From: Brian Birtles <bbirtles@mozilla.com>
Date: Fri, 18 Jul 2014 09:21:37 +0900
Message-ID: <53C86891.7090705@mozilla.com>
To: Sylvain Galineau <galineau@adobe.com>
CC: Simon Fraser <smfr@me.com>, "<www-style@w3.org>" <www-style@w3.org>
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,

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:23 UTC