<?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>194938</bug_id>
          
          <creation_ts>2019-02-22 01:20:16 -0800</creation_ts>
          <short_desc>Changing the transition-duration of an-flight transition should not alter or cancel it</short_desc>
          <delta_ts>2019-02-22 01:41:20 -0800</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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Antoine Quint">graouts</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1508940</commentid>
    <comment_count>0</comment_count>
      <attachid>362706</attachid>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2019-02-22 01:20:16 -0800</bug_when>
    <thetext>Created attachment 362706
Test case

See the attached test case. In this example we start a transition by setting transition-duration to a positive value and then setting a &quot;margin-left&quot; style which triggers a transition for the duration set. Then, one second after the transition has started, we remove the transition-duration which reverts back to 0. In our current implementation this cancels the transition, but the spec says that it shouldn&apos;t, per the note at the bottom of https://drafts.csswg.org/css-transitions-1/#starting:

&quot;Note that once the transition of a property has started (including being in its delay phase), it continues running based on the original timing function, duration, and delay, even if the transition-timing-function, transition-duration, or transition-delay property changes before the transition is complete. However, if the transition-property property changes such that the transition would not have started, the transition stops (and the property immediately changes to its final value).&quot;

While this is informative text, there are no normative steps that would indicate otherwise.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1508948</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-02-22 01:41:20 -0800</bug_when>
    <thetext>&lt;rdar://problem/48305929&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>362706</attachid>
            <date>2019-02-22 01:20:16 -0800</date>
            <delta_ts>2019-02-22 01:20:16 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>transition-shoud-not-cancel-when-changing-transition-duration.html</filename>
            <type>text/html</type>
            <size>864</size>
            <attacher name="Antoine Quint">graouts</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KPG1ldGEgY2hhcnNldD0idXRmLTgiPgo8c3R5
bGU+CgpkaXYgewogICAgdG9wOiAwOwogICAgbGVmdDogMDsKICAgIHdpZHRoOiAyMDBweDsKICAg
IGhlaWdodDogMjAwcHg7CiAgICBiYWNrZ3JvdW5kLWNvbG9yOiBibGFjazsKfQoKPC9zdHlsZT4K
PC9oZWFkPgo8Ym9keT4KPGRpdj48L2Rpdj4KPHNjcmlwdD4KCiAgICBjb25zdCB0YXJnZXQgPSBk
b2N1bWVudC5xdWVyeVNlbGVjdG9yKCJkaXYiKTsKICAgIHRhcmdldC5zdHlsZS50cmFuc2l0aW9u
RHVyYXRpb24gPSAiNXMiOwoKICAgIHNldFRpbWVvdXQoXyA9PiB7CiAgICAgICAgdGFyZ2V0LmFk
ZEV2ZW50TGlzdGVuZXIoInRyYW5zaXRpb25ydW4iLCBldmVudCA9PiB7CiAgICAgICAgICAgIHNl
dFRpbWVvdXQoXyA9PiB7CiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZygiUmVtb3ZpbmcgdGhl
ICd0cmFuc2l0aW9uJyBwcm9wZXJ0eSBhZnRlciB0aGUgdHJhbnNpdGlvbiBoYXMgYmVlbiBydW5u
aW5nIGZvciBhIHNlY29uZC4iKTsKICAgICAgICAgICAgICAgIHRhcmdldC5zdHlsZS5yZW1vdmVQ
cm9wZXJ0eSgidHJhbnNpdGlvbi1kdXJhdGlvbiIpOwogICAgICAgICAgICAgICAgY29uc29sZS5s
b2coYE51bWJlciBvZiBydW5uaW5nIGFuaW1hdGlvbnM6ICR7dGFyZ2V0LmdldEFuaW1hdGlvbnMo
KS5sZW5ndGh9LmApOwogICAgICAgICAgICB9LCAxMDAwKTsKICAgICAgICB9KTsKCiAgICAgICAg
Y29uc29sZS5sb2coIlN0YXJ0aW5nIGluaXRpYWwgdHJhbnNpdGlvbi4iKTsKICAgICAgICB0YXJn
ZXQuc3R5bGUubWFyZ2luTGVmdCA9ICI1MDBweCI7CiAgICB9KTsKCjwvc2NyaXB0Pgo8L2JvZHk+
CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>