W3C home > Mailing lists > Public > www-style@w3.org > February 2013

AnimationEvents for pseudo-elements

From: Jared Wein <jwein@mozilla.com>
Date: Fri, 1 Feb 2013 08:16:46 -0800 (PST)
To: www-style@w3.org
Message-ID: <219008423.2737044.1359735406915.JavaMail.root@mozilla.com>
Hi,

I noticed today the lack of AnimationEvents for pseudo-elements. I realize that this is a tricky topic because JS does not have access to pseudo-elements, so it is impossible to add event listeners directly to the event listeners, nor have the event.target equate to the pseudo-element.

One way that this could be fixed is allow AnimationEvents to dispatch against their parent element, with event.target equal to the parent element as well. This obviously could cause compatibility issues with script already out in the wild.

Perhaps the following approach could be taken, but with a different event name such as "descedentanimationstart", "descendentanimationend", etc., but this name is too verbose and implies that it would work in other situations that already have sufficient support.

Has there been any thoughts about this already?

Thanks,
Jared
Received on Friday, 1 February 2013 16:17:14 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:05 GMT