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

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

From: Dean Jackson <dino@apple.com>
Date: Wed, 29 Apr 2015 10:59:42 +1000
Cc: www-style@w3.org
Message-Id: <0FD5BF06-097F-4F09-9DA9-DC64946E92AB@apple.com>
To: Brian Birtles <bbirtles@mozilla.com>

> On 23 Apr 2015, at 11:01 am, Brian Birtles <bbirtles@mozilla.com> wrote:
> 
> 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.

I agree, on both points. cancel events would be helpful.

Dean

> 
>> 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 Wednesday, 29 April 2015 01:00:14 UTC

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