<?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>218910</bug_id>
          
          <creation_ts>2020-11-13 09:49:10 -0800</creation_ts>
          <short_desc>Value of animation at time 0 does not match Firefox (or WPT test expectations) for color accumulate composite test</short_desc>
          <delta_ts>2022-09-12 07:12:27 -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>
          <dependson>189299</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sam Weinig">sam</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <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>1707286</commentid>
    <comment_count>0</comment_count>
      <attachid>414056</attachid>
    <who name="Sam Weinig">sam</who>
    <bug_when>2020-11-13 09:49:10 -0800</bug_when>
    <thetext>Created attachment 414056
Reduced Test Case

The value of animation at time 0 does not match Firefox (or WPT test expectations) for color accumulate composite test. Reduced test case attached.

`
  target.style[idlName] = &apos;rgb(128, 128, 128)&apos;;
  const animation = target.animate({ [idlName]: [&apos;rgb(255, 0, 0)&apos;, &apos;rgb(0, 0, 255)&apos;] }, { duration: 1000, composite: &apos;accumulate&apos; });
  testAnimationSamples(animation, idlName, [{ time: 0,  expected: &apos;rgb(255, 128, 128)&apos; }]);
`

This reduction was extracted from http://wpt.live/web-animations/animation-model/animation-types/accumulation-per-property-002.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1709520</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-11-20 09:50:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/71631573&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1709742</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2020-11-21 00:38:47 -0800</bug_when>
    <thetext>Since we don&apos;t support composite operations (bug 189299), I expect instead of accumulating over the base value we are replacing it entirely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895921</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-02 16:15:11 -0700</bug_when>
    <thetext>Attached test case show following for all browsers (Chrome Canary 107, Firefox Nightly 106 and Safari Technology Preview 152):

PASS
The value should be rgb(255, 128, 128) at 0ms
The value is rgb(255, 128, 128) at 0ms

Is anything else needed here? WPT Live link test still has 20 failures in STP 152, 1 in Firefox Nightly 106 and 12 in Chrome Canary 107.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1897850</commentid>
    <comment_count>4</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-09-12 07:12:27 -0700</bug_when>
    <thetext>Yes, since composite operations are now supported, this particular issue seems addressed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>414056</attachid>
            <date>2020-11-13 09:49:10 -0800</date>
            <delta_ts>2020-11-13 09:49:10 -0800</delta_ts>
            <desc>Reduced Test Case</desc>
            <filename>testcase.html</filename>
            <type>text/html</type>
            <size>1117</size>
            <attacher name="Sam Weinig">sam</attacher>
            
              <data encoding="base64">PHByZSBpZD0ibG9nIj48L3ByZT4KPHNjcmlwdD4KICAndXNlIHN0cmljdCc7CiAgCiAgZnVuY3Rp
b24gbG9nKG1zZykgewogICAgZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImxvZyIpLmFwcGVuZCht
c2cgKyAiXG4iKTsKICB9CgogIGZ1bmN0aW9uIHRlc3RBbmltYXRpb25TYW1wbGVzKGFuaW1hdGlv
biwgaWRsTmFtZSwgdGVzdFNhbXBsZXMpIHsKICAgIGNvbnN0IHBzZXVkb1R5cGUgPSBhbmltYXRp
b24uZWZmZWN0LnBzZXVkb0VsZW1lbnQ7CiAgICBjb25zdCB0YXJnZXQgPSBhbmltYXRpb24uZWZm
ZWN0LnRhcmdldDsKICAgIGZvciAoY29uc3QgdGVzdFNhbXBsZSBvZiB0ZXN0U2FtcGxlcykgewog
ICAgICBhbmltYXRpb24uY3VycmVudFRpbWUgPSB0ZXN0U2FtcGxlLnRpbWU7CiAgICAgIGNvbnN0
IHJlc3VsdCA9IGdldENvbXB1dGVkU3R5bGUodGFyZ2V0LCBwc2V1ZG9UeXBlKVtpZGxOYW1lXTsK
ICAgICAgaWYgKHJlc3VsdCA9PSB0ZXN0U2FtcGxlLmV4cGVjdGVkKSB7CiAgICAgICAgbG9nKCJQ
QVNTIik7CiAgICAgIH0gZWxzZSB7CiAgICAgICAgbG9nKCJGQUlMIik7CiAgICAgIH0KICAgICAg
bG9nKGBUaGUgdmFsdWUgc2hvdWxkIGJlICR7dGVzdFNhbXBsZS5leHBlY3RlZH0gYXQgJHt0ZXN0
U2FtcGxlLnRpbWV9bXNgKTsKICAgICAgbG9nKGBUaGUgdmFsdWUgaXMgJHtyZXN1bHR9IGF0ICR7
dGVzdFNhbXBsZS50aW1lfW1zYCk7CiAgICB9CiAgfQoKCiAgY29uc3QgdGFyZ2V0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