<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>161535</bug_id>
          
          <creation_ts>2016-09-02 09:51:04 -0700</creation_ts>
          <short_desc>Implement the transitioncancel event</short_desc>
          <delta_ts>2019-06-19 17:17:00 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Animations</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>183864</dup_id>
          <see_also>https://bugzilla.mozilla.org/show_bug.cgi?id=1264125</see_also>
    
    <see_also>https://bugs.chromium.org/p/chromium/issues/detail?id=642487</see_also>
          <bug_file_loc>https://drafts.csswg.org/css-transitions-2/#eventdef-transitionevent-transitioncancel</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>W3CTest</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Rebert">webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>jonlee</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1225796</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Rebert">webkit</who>
    <bug_when>2016-09-02 09:51:04 -0700</bug_when>
    <thetext>Specification: https://drafts.csswg.org/css-transitions-2/#eventdef-transitionevent-transitioncancel

Steps to reproduce the problem:
1. Open the CSSWG testcase https://github.com/w3c/csswg-test/blob/master/css-transitions-2/transitioncancel-001.html in Safari.

What is the expected behavior?
The test should pass.

What went wrong?
The test failed, indicating that Safari is not firing the transitioncancel event when a transition is canceled.
(In this case, the cancellation is due to the element being made display:none; while the transition was in progress.)


Without transitioncancel, scripts which are waiting for the end (whether normal or canceled early) of a CSS transition have to resort
to using setTimeout (or similar) to ensure that their callbacks still get called even if the transition gets canceled.
This extra complexity is annoying to authors, and frameworks often include such setTimeout-based workarounds in practice, for example:
* https://github.com/twbs/bootstrap/blob/c56219d223af5145c171defb9fa1426e1dd022f3/js/transition.js#L36
* https://github.com/Semantic-Org/Semantic-UI/blob/f725b162e70896e38257965424ac7f9af486b927/src/definitions/modules/transition.js#L441
Such extra setTimeout()s also presumably have a negative impact on performance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1546311</commentid>
    <comment_count>1</comment_count>
    <who name="Jon Lee">jonlee</who>
    <bug_when>2019-06-19 17:17:00 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 183864 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>