<?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>203081</bug_id>
          
          <creation_ts>2019-10-17 06:57:14 -0700</creation_ts>
          <short_desc>[Web Animations] Adding a transition interferes with Web Animation easing</short_desc>
          <delta_ts>2020-02-24 02:49:54 -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>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>207760</dup_id>
          
          <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="Liam DeBeasi">ldebeasi</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>graouts</cc>
    
    <cc>graouts</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1580945</commentid>
    <comment_count>0</comment_count>
    <who name="Liam DeBeasi">ldebeasi</who>
    <bug_when>2019-10-17 06:57:14 -0700</bug_when>
    <thetext>Link to reproduction: https://codepen.io/liamdebeasi/pen/PooGPMM

Steps to reproduce:

1. Open the CodePen link. You should see a blue square translating on the X axis and fading out to 0 in an endless loop.
2. Click the &quot;toggle transition&quot; button. This will add &quot;transition: 0.2s ease-in-out;&quot; to the square.
3. Notice that the animation is no longer smooth and is janky.

This behavior does not happen in Chrome/Firefox. I would expect that Web Animations would override whatever applicable CSS I have applied inline to the element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1581364</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-10-18 02:54:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/56401884&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1581365</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2019-10-18 02:55:18 -0700</bug_when>
    <thetext>Thanks for the bug report Liam. You are correct, the CSS transition should have no effect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1615611</commentid>
    <comment_count>3</comment_count>
    <who name="Liam DeBeasi">ldebeasi</who>
    <bug_when>2020-02-06 06:54:27 -0800</bug_when>
    <thetext>Testing this again on Safari Tech Preview 100. The issue looks better, but small animation glitches still remain. Here are updated steps to reproduce:

1. Open the CodePen link. You should see a blue square translating on the X axis and fading out to 0 in an endless loop.
2. Click the &quot;toggle transition&quot; button. This will add &quot;transition: 0.2s ease-in-out;&quot; to the square.
3. Notice that the animation is janky for a few frames and then continues on smoothly as it did before. It looks like the animation jumps back to the beginning for a brief period and then resumes where it was before.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1615619</commentid>
    <comment_count>4</comment_count>
      <attachid>389953</attachid>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2020-02-06 07:20:26 -0800</bug_when>
    <thetext>Created attachment 389953
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1615620</commentid>
    <comment_count>5</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2020-02-06 07:21:53 -0800</bug_when>
    <thetext>The issue here is that we&apos;re generating transitions when we shouldn&apos;t be:

    1. CSSTransition for transform going from matrix(1, 0, 0, 1, 0, 0) to none running for 2000ms on &lt;div class=&quot;square trans&quot;&gt;
    2. CSSTransition for opacity going from 0.001500000013038516 to 1 running for 2000ms on &lt;div class=&quot;square trans&quot;&gt;

We&apos;re picking up the opacity and transform values animated by the Web Animations, and we should ignore those altogether.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1615650</commentid>
    <comment_count>6</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2020-02-06 08:32:25 -0800</bug_when>
    <thetext>Actually, there are two issues, the first issue is generating transitions when we ought not to. The second is that the (mistakenly) generated transitions should be overridden completely by the looping Web Animation and thus have no effect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1622097</commentid>
    <comment_count>7</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2020-02-24 02:49:54 -0800</bug_when>
    <thetext>This no longer reproduces on ToT, this was fixed by r256627. Marking as dupe of bug 207760.

*** This bug has been marked as a duplicate of bug 207760 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>389953</attachid>
            <date>2020-02-06 07:20:26 -0800</date>
            <delta_ts>2020-02-06 07:20:26 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>203081.html</filename>
            <type>text/html</type>
            <size>692</size>
            <attacher name="Antoine Quint">graouts</attacher>
            
              <data encoding="base64">PGh0bWw+CiAgPGhlYWQ+CiAgICA8c3R5bGU+Cgouc3F1YXJlIHsKICBtYXJnaW46IDQwcHggMzBw
eDsKICB3aWR0aDogMTAwcHg7CiAgaGVpZ2h0OiAxMDBweDsKICBiYWNrZ3JvdW5kOiByZ2JhKDAs
IDAsIDI1NSwgMC41KTsKfQoKLnRyYW5zIHsKICB0cmFuc2l0aW9uOiAycyBlYXNlLWluLW91dDsK
fQogICAgCiAgICA8L3N0eWxlPgogIDwvaGVhZD4KICA8Ym9keT4KICAgIDxkaXYgY2xhc3M9InNx
dWFyZSI+PC9kaXY+CiAgICA8YnV0dG9uIG9uY2xpY2s9InRvZ2dsZSgpIj50b2dnbGUgdHJhbnNp
dGlvbjwvYnV0dG9uPgogICAgPHNjcmlwdD4KCmNvbnN0IGtleWZyYW1lcyA9IFsKICB7IG9mZnNl
dDogMCwgb3BhY2l0eTogMSwgdHJhbnNmb3JtOiAndHJhbnNsYXRlWCgwJSknIH0sCiAgeyBvZmZz
ZXQ6IDEsIG9wYWNpdHk6IDAsIHRyYW5zZm9ybTogJ3RyYW5zbGF0ZVgoMTAwJSknIH0KXTsKCmNv
bnN0IHNxdWFyZSA9IGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3IoJy5zcXVhcmUnKTsKCnNxdWFyZS5h
bmltYXRlKGtleWZyYW1lcywgewogIGVhc2luZzogJ2xpbmVhcicsCiAgaXRlcmF0aW9uczogSW5m
aW5pdHksCiAgZHVyYXRpb246IDIwMDAKfSk7Cgpjb25zdCB0b2dnbGUgPSAoKSA9PiB7CiAgc3F1
YXJlLmNsYXNzTGlzdC50b2dnbGUoJ3RyYW5zJyk7Cn0KCiAgICA8L3NjcmlwdD4KICA8L2JvZHk+
CjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>