<?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>194941</bug_id>
          
          <creation_ts>2019-02-22 01:39:04 -0800</creation_ts>
          <short_desc>Retargeting an in-flight transition should account for the transformed progress of the initial transition to compute its duration</short_desc>
          <delta_ts>2023-05-10 12:59:53 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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>graouts</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1508944</commentid>
    <comment_count>0</comment_count>
      <attachid>362707</attachid>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2019-02-22 01:39:04 -0800</bug_when>
    <thetext>Created attachment 362707
Test case

See the attached test case. In this example we initially run a transition for 5 seconds, and 2 seconds into its run we change its to-value. In our implementation both the initial and the retargeted transition have the same duration: 5 seconds. However, the retargeted transition should compute its duration by factoring the transformed progress (accounting for the timing-function) of the initial duration when it&apos;s interrupted and the transition-duration.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1508946</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-02-22 01:39:32 -0800</bug_when>
    <thetext>&lt;rdar://problem/48305906&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1954474</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2023-05-10 12:59:53 -0700</bug_when>
    <thetext>Works correctly in Safari 16!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>362707</attachid>
            <date>2019-02-22 01:39:04 -0800</date>
            <delta_ts>2019-02-22 01:39:04 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>duration-of-a-retarget-transition.html</filename>
            <type>text/html</type>
            <size>1313</size>
            <attacher name="Antoine Quint">graouts</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KPG1ldGEgY2hhcnNldD0idXRmLTgiPgo8c3R5
bGU+CgpkaXYgewogICAgdG9wOiAwOwogICAgbGVmdDogMDsKICAgIHdpZHRoOiAyMDBweDsKICAg
IGhlaWdodDogMjAwcHg7CiAgICBiYWNrZ3JvdW5kLWNvbG9yOiBibGFjazsKICAgIHRyYW5zaXRp
b24tZHVyYXRpb246IDVzOwp9Cgo8L3N0eWxlPgo8L2hlYWQ+Cjxib2R5Pgo8ZGl2PjwvZGl2Pgo8
c2NyaXB0PgoKY29uc3QgdGFyZ2V0ID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvcigiZGl2Iik7Cgpm
dW5jdGlvbiBkdW1wVHJhbnNpdGlvbkR1cmF0aW9uKCkKewogICAgY29uc3QgdHJhbnNpdGlvbiA9
IHRhcmdldC5nZXRBbmltYXRpb25zKClbMF07CiAgICBjb25zb2xlLmFzc2VydCh0cmFuc2l0aW9u
LCAiQSBydW5uaW5nIHRyYW5zaXRpb24gd2FzIGV4cGVjdGVkLiIpOw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