-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spec sending prefixed animation and transition events #24
Comments
https://bugzilla.mozilla.org/show_bug.cgi?id=1236979 landed in Firefox Nightly today (and fixes the issuses we found). |
|
Rather than send these prefixed events all the time, do this iff there are listeners for those prefixed events and a standard event hasn't been fired on that element already.
|
How does that work with respect to bubbling and capturing? |
See https://bugzilla.mozilla.org/show_bug.cgi?id=1236979#c38 -- I should test that this works for capturing too. (Unless @dholbert already did) |
Oh wow that behavior seems fairly magical. How would you specify that without changing the event dispatch algorithm somehow? @smaug----? |
🎩 Magic. ✨ |
You need to change event dispatch algorithm. What Gecko has now should be the same what Chrome has for webkit prefixed events: Yes, we are actually changing the event type while calling prefixed listeners. Absolutely horrible, but that is that blink and webkit folks have decided to do, and doesn't make sense to have different setup for these prefixed events in Gecko. |
Edge has also implemented this -- based on https://bug1236979.bmoattachments.org/attachment.cgi?id=8707180. edit: IE11 too, it seems. |
Okay, so it seems like we should add this to the DOM Standard directly then @miketaylr. No need to hide the ugly. |
@annevk SGTM. |
Closing here in favor of whatwg/dom#156. |
See whatwg/compat#24 for context. PR: #168
cf. https://bugzilla.mozilla.org/show_bug.cgi?id=1236979 and https://bugzilla.mozilla.org/show_bug.cgi?id=1236930.
A popular mapping library, Leaflet.js, when it tests for transitionEnd event prefixes prefers
webkitTransitionEnd
because some Android browsers had unprefixed CSStransition
but not an unprefixedtransitionEnd
event. 😭It seems in order to be compatible with this content—for UAs that do alias
-webkit-transition
— they need to also sendwebkitTransitionEnd
events. Boo.See Leaflet/Leaflet#1182 and associated commit.
The text was updated successfully, but these errors were encountered: