Re: AnimationEvents for pseudo-elements

On Fri, Feb 1, 2013 at 1:16 PM, Jared Wein <jwein@mozilla.com> wrote:
> 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?

Is the pseudoElement attribute what you are looking for?

http://dev.w3.org/csswg/css3-animations/#AnimationEvent-interface

It is not yet implemented in Opera, WebKit and FF from my last
testing. It is implemented in WebKit on the transition events for
couple of days. I plan to add it in the Animations soonish.

>
> Thanks,
> Jared
>

-- 
Alexis Menard

Intel Semiconductores do Brasil Ltda.
Ave Dr. Chucri Zaidan, 940, Brooklin, 10 Andar
04583-904 São Paulo, SP
Brazil

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

Received on Friday, 1 February 2013 16:31:46 UTC