<?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>246913</bug_id>
          
          <creation_ts>2022-10-23 03:02:01 -0700</creation_ts>
          <short_desc>[web-animations] handle blending of layout-dependent &lt;transform-list&gt; values</short_desc>
          <delta_ts>2026-01-12 09:03:28 -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>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>246937</dependson>
          <blocked>222096</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Antoine Quint">graouts</reporter>
          <assigned_to name="Antoine Quint">graouts</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>dino</cc>
    
    <cc>graouts</cc>
    
    <cc>koivisto</cc>
    
    <cc>philip</cc>
    
    <cc>sam</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1907624</commentid>
    <comment_count>0</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-10-23 03:02:01 -0700</bug_when>
    <thetext>We&apos;re failing a subtest in web-animations/interfaces/Animation/commitStyles.html:

test(t =&gt; {
  const div = createDiv(t);
  div.style.width = &apos;200px&apos;;
  div.style.height = &apos;200px&apos;;

  const animation = div.animate({ transform: [&quot;translate(100%, 0%)&quot;, &quot;scale(3)&quot;] }, 1000);
  animation.currentTime = 500;
  animation.commitStyles();
  animation.cancel();

  assert_equals(getComputedStyle(div).transform, &quot;matrix(2, 0, 0, 2, 100, 0)&quot;,
      &quot;Resolved transform is correct after commit.&quot;);
}, &apos;Commits matrix-interpolated relative transforms&apos;);

Our current result is &quot;matrix(2, 0, 0, 2, 0, 0)&quot; because when we blend under commitStyles() layout has not happened yet for the div and the bounds passed to resolve the 100% translation value is 0,0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907625</commentid>
    <comment_count>1</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-10-23 03:08:19 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/5684</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907742</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-10-24 01:33:10 -0700</bug_when>
    <thetext>Performing a layout should not be required to pass this test, I wrote all the details in https://github.com/WebKit/WebKit/pull/5684#issuecomment-1288636644.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907752</commentid>
    <comment_count>3</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-10-24 02:42:19 -0700</bug_when>
    <thetext>We&apos;ll need mix() support, I filed https://bugs.webkit.org/show_bug.cgi?id=246937. Retitling this bug to correctly identify the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1909205</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-10-30 03:02:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/101725429&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2018942</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-03-05 18:35:05 -0800</bug_when>
    <thetext>Still failing sub-test: https://wpt.fyi/results/web-animations/interfaces/Animation/commitStyles.html?label=master&amp;label=experimental&amp;aligned=&amp;q=safari%3Afail+firefox%3Apass+chrome%3Apass

Adding &apos;WPTImpact&apos; and &apos;BrowserCompat&apos; tags.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2138187</commentid>
    <comment_count>6</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2025-08-22 01:20:13 -0700</bug_when>
    <thetext>*** Bug 222096 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2138193</commentid>
    <comment_count>7</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2025-08-22 01:37:46 -0700</bug_when>
    <thetext>Note that `mix()` is no longer a thing and in this instance `transform-mix()` would be the relevant CSS function: https://drafts.csswg.org/css-values-5/#transform-mix.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>