- From: Jared Wein <jwein@mozilla.com>
- Date: Fri, 1 Feb 2013 08:34:57 -0800 (PST)
- To: Alexis Menard <alexis@webkit.org>
- Cc: www-style@w3.org
----- Original Message ----- > From: "Alexis Menard" <alexis@webkit.org> > To: "Jared Wein" <jwein@mozilla.com> > Cc: www-style@w3.org > Sent: Friday, February 1, 2013 11:28:19 AM > Subject: 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 > Yes, that looks like what I am looking for. Thanks!
Received on Friday, 1 February 2013 16:35:24 UTC