W3C home > Mailing lists > Public > www-style@w3.org > April 2015

Re: [css-animations] animationend events and display: none

From: Brian Birtles <bbirtles@mozilla.com>
Date: Thu, 23 Apr 2015 10:01:49 +0900
Message-ID: <5538447D.5060403@mozilla.com>
To: www-style@w3.org
On 2015/04/22 15:27, Shane Stephens wrote:
> If a subtree becomes display: none, should previously active animations
> in that subtree have animationend events delivered or not?

I think not. I'm pretty sure we will need to add transitioncancel and 
animationcancel events in a future level of CSS Transitions and CSS 
Animations and this sounds like a scenario where we would dispatch 
animationcancel. animationend should be reserved for successful completion.

> Currently, I think Firefox delivers events while Chrome does not.

I'd suggest Firefox is wrong in that case. Note that we changed this 
behavior in Firefox 39 (i.e. the current Developer Edition aka Aurora).[1]

Best regards,

Brian

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=962594
Received on Thursday, 23 April 2015 01:02:20 UTC

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