Repository navigation
CSS Transitions/Animations DOM events in Safari - #6151
sideshowbarker merged 3 commits into
Conversation
https://trac.webkit.org/changeset/229818/webkit#file15 added support to WebKit for the animationcancel, transitioncancel, transitionrun, and transitionstart events, and the onanimationcancel, ontransitionrun, ontransitionstart, and ontransitioncancel event handlers. https://trac.webkit.org/browser/webkit/tags/Safari-606.1.36/Source/WebCore/dom/GlobalEventHandlers.idl#L100 shows that change was included in the Safari 12 release tag.
411224b to
e6751b1
Compare
|
Looks good to me, but maybe our Animation API expert @lpd-au knows more :) |
There was a problem hiding this comment.
I may be mistaken, but I believe this should be 12 supported behind the experimental feature "Web Animations" + "CSS Animations via Web Animations" (assuming the version you found is correct) and 13.1/13.4 generally supported. Sanity test I used: https://jsbin.com/canoget/edit?html,css,js,output
Is there information online somewhere about that experimental feature? (I mean information from the time when it was still experimental.) There was a flag for setting it? Looking through the revision at https://trac.webkit.org/changeset/229818/, I can’t find any indications at all in the source that it was implemented behind a flag of any kind. https://web-confluence.appspot.com/#!/catalog?releases=%5B%22Safari_11.1.1_OSX_10.13.5%22,%22Safari_12.0_OSX_10.13.6%22,%22Safari_13.0.2_OSX_10.15%22%5D&q=%22ontransitioncancel%22 also seems to indicate that the event handlers were exposed in Safari 12 as-shipped (without any flags needing to be set). At https://bugs.webkit.org/show_bug.cgi?id=187037 I see also that the overall Web Animations feature got marked as “Supported in Preview” on 2018-06-26, which is prior to the 2018-09-24 release date of Safari 12. |
|
OK I managed to find https://bugs.webkit.org/show_bug.cgi?id=184569 (“Turn CSS Animations and CSS Transitions as Web Animations on by default”) and https://bugs.webkit.org/show_bug.cgi?id=204650 and https://trac.webkit.org/changeset/252945/webkit, which flipped on 2019-11-29 flipped the “CSS Transitions as Web Animations” flag to true by default. Which means that Safari 13.1 was the first release to ship with it on by default — which aligns with @lpd-au’s comment at #6151 (review) So I’ll update the patch to indicate that. |
Yes, you appear to be right about that, the global event handlers are |
Right — so they were useless in Safari 12 out of the box without the expected behavior being flipped on
OK, I’ll write up a change which does it that way |
|
@lpd-au By the way, in the existing data for browser-compat-data/api/Document.json Lines 5355 to 5367 in ac8cae6 So, a couple questions:
Incidentally, as of 2020-04-06, https://webkit.org/b/179536 and https://webkit.org/b/202192 were both moved to resolved=fixed, so I think |
Afaik, the behaviour of these events isn't linked to
I would say a separate PR would be better, addressing both #5743 (see also #6052 because I made some errors I later corrected here)
|
OK — understood
OK |
|
OK 02d03f5 update pushed to the branch. Ready for re-review |
lpd-au
left a comment
There was a problem hiding this comment.
Looks good to me although you may want to add notes to the Safari 12 api.GlobalEventHandlers.* entries.
Thanks, good point — so in 3434f9e I’ve added those notes. Please review the wording and suggest any changes/refinements needed. |
|
@lpd-au Thanks much |
https://trac.webkit.org/changeset/229818/webkit#file15 added support to WebKit for the
animationcancel,transitioncancel,transitionrun, andtransitionstartevents, and theonanimationcancel,ontransitionrun,ontransitionstart, andontransitioncancelevent handlers.https://trac.webkit.org/browser/webkit/tags/Safari-606.1.36/Source/WebCore/dom/GlobalEventHandlers.idl#L100 shows that change was included in the Safari 12 release tag.