<?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>201736</bug_id>
          
          <creation_ts>2019-09-12 13:12:34 -0700</creation_ts>
          <short_desc>CSS variables in keyframes don&apos;t work</short_desc>
          <delta_ts>2022-11-29 02:25:11 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>248145</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=244627</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=248145</see_also>
          <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="Simon Fraser (smfr)">simon.fraser</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>koivisto</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>twilco.o</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1570347</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-09-12 13:12:34 -0700</bug_when>
    <thetext>The bubbles on this demo should have color, and do not:
https://codepen.io/sandrina-p/pen/axVeGg

Mentioned on https://css-tricks.com/using-custom-properties-to-wrangle-variations-in-keyframe-animations/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1570348</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-09-12 13:13:02 -0700</bug_when>
    <thetext>&lt;rdar://problem/55314274&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1894517</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-29 07:18:38 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari Technology Preview 152 on macOS 12.5.1 using CodePen from Comment 0 and it does not update color on circles while Chrome Canary 107 and Firefox Nightly 106 show color matching with text when you hover or move mouse on the CodePen. In case of Safari, the color remain just grey for bubbles.

Just wanted to share updated testing results. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1894518</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-29 07:18:42 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari Technology Preview 152 on macOS 12.5.1 using CodePen from Comment 0 and it does not update color on circles while Chrome Canary 107 and Firefox Nightly 106 show color matching with text when you hover or move mouse on the CodePen. In case of Safari, the color remain just grey for bubbles.

Just wanted to share updated testing results. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1894540</commentid>
    <comment_count>4</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2022-08-29 08:33:14 -0700</bug_when>
    <thetext>The issue is the we don&apos;t invalidate keyframes when a variable value changes so fail to reflect changes correctly. To implement this we need to track if the keyframe uses any variables and invalidate it on variable mutation (preferably only when a variable that is actually used changes). There is somewhat similar mechanism already for container units (KeyframeList::usesContainerUnits() etc).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1915252</commentid>
    <comment_count>5</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-11-29 01:14:21 -0800</bug_when>
    <thetext>We did some work recently (see bug 248145) to improve support of CSS variables with animations but this bug persists.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1915261</commentid>
    <comment_count>6</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-11-29 02:25:11 -0800</bug_when>
    <thetext>I was wrong, this is fixed in ToT, marking as a dupe.

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

    </bug>

</bugzilla>