<?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>251022</bug_id>
          
          <creation_ts>2023-01-23 10:01:46 -0800</creation_ts>
          <short_desc>Web Animation API does not update root CSS Variables</short_desc>
          <delta_ts>2023-01-24 10:03:17 -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>CSS</component>
          <version>Safari 16</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>210963</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Lopez">clshortfuse</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>graouts</cc>
    
    <cc>karlcow</cc>
    
    <cc>koivisto</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1927492</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Lopez">clshortfuse</who>
    <bug_when>2023-01-23 10:01:46 -0800</bug_when>
    <thetext>When using Web Animation API to update CSS Variables, root CSS variables are not updated. Child elements do reflect updated variables. commitStyles() works (but would violate inline-style csp).

eg: 

box3
  .animate([{
    &apos;--background-color&apos;: &apos;gray&apos;,
    &apos;--color&apos;: &apos;blue&apos;,
  }], {
    duration: 0,
    fill: &apos;forwards&apos;,
  });

See codepen: https://codepen.io/shortfuse/pen/JjBpeQX

For comparison, all tests pass on Chrome and no CSS Variable related tests pass on Firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1927689</commentid>
    <comment_count>1</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-01-23 19:33:14 -0800</bug_when>
    <thetext>From https://codepen.io/shortfuse/pen/JjBpeQX

Background-Color = Root
Foreground-Color = Child

Feature	Result
1. Root CSS Property	
2. Child CSS Property	
3 Root CSS Variable	
4. Child CSS Variable	
5. Commited Root CSS Variable	
6. Commited Child CSS Variable	

        1  2  3  4  5  6 
Safari  P  P  X  P  P  P
Firefox P  P  X  X  X  X
Chrome  P  P  P  P  P  P

P PASS
X FAIL


Probably part of Bug 235138</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1927690</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-23 19:33:37 -0800</bug_when>
    <thetext>&lt;rdar://problem/104584506&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1927848</commentid>
    <comment_count>3</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2023-01-24 10:03:17 -0800</bug_when>
    <thetext>This is already fixed on ToT, specifically this progressed with 258514@main. Dupe of bug 210963.

*** This bug has been marked as a duplicate of bug 210963 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>