<?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>215918</bug_id>
          
          <creation_ts>2020-08-28 04:36:17 -0700</creation_ts>
          <short_desc>[Web Animations] Using a cubic-bezier() easing with y values above 1 fails</short_desc>
          <delta_ts>2021-05-03 06:35:43 -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>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=215826</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=225301</see_also>
          <bug_file_loc>https://cldup.com/3gYZzqJk0K.html</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>clord</cc>
    
    <cc>dino</cc>
    
    <cc>heycam</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1683611</commentid>
    <comment_count>0</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2020-08-28 04:36:17 -0700</bug_when>
    <thetext>This is a follow-up to bug 215826 which addressed the CSS Transition case, but the JS-originated animation case would require either a Core Animation fix or a different, as-yet unidentified workaround.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683612</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-08-28 04:37:01 -0700</bug_when>
    <thetext>&lt;rdar://problem/67933480&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756119</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2021-05-03 01:59:46 -0700</bug_when>
    <thetext>Cameron McCormack on WebKit Slack mentioned a tweet that sounds like this issue:

https://twitter.com/bdc/status/1389138046545797122

It contains a link to an example where we fail:

https://cldup.com/3gYZzqJk0K.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756123</commentid>
    <comment_count>3</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2021-05-03 02:15:08 -0700</bug_when>
    <thetext>I think we could fix this particular test because it uses a single keyframe so we could set the keyframe-specific timing function in CA rather than the animation-wide one, which is the one that doesn&apos;t handle cubic() timing function values outside of the [0-1] range. But it wouldn&apos;t fix the overall issue with animation-wide timing function with multiple keyframes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756124</commentid>
    <comment_count>4</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2021-05-03 02:17:48 -0700</bug_when>
    <thetext>This particular test can be rewritten to set the easing on the keyframe to get the desired behavior:

  document.body.firstElementChild.animate({
    transform: [&quot;none&quot;, &quot;translate(50vw)&quot;],
    easing: &quot;cubic-bezier(.2, 1, .2, 1.5)&quot;
  }, {
    duration: 1000,
    fill: &quot;forwards&quot;,
  });</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756151</commentid>
    <comment_count>5</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2021-05-03 06:29:33 -0700</bug_when>
    <thetext>So the particular example mentioned in the tweet did actually regress in r260360. What we should do is disable accelerated animations when there are more than 2 keyframes and an animation-wide timing function with a y value outside of the [0-1] range, and handle the 2-keyframe case by setting the keyframe timing function, provided there is no keyframe-specific easing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756152</commentid>
    <comment_count>6</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2021-05-03 06:29:50 -0700</bug_when>
    <thetext>Then we can track the other cases with a different bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756153</commentid>
    <comment_count>7</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2021-05-03 06:30:21 -0700</bug_when>
    <thetext>Actually, let&apos;s keep this bug for the general problem and create one dedicated to fixing the 2-keyframe case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756159</commentid>
    <comment_count>8</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2021-05-03 06:35:43 -0700</bug_when>
    <thetext>The more specific bug is bug 225301.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>