<?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>223534</bug_id>
          
          <creation_ts>2021-03-19 13:38:19 -0700</creation_ts>
          <short_desc>REGRESSION (Safari 14): background: currentColor for buttons not correctly updating for pseudo selectors</short_desc>
          <delta_ts>2021-04-15 06:40:21 -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>CSS</component>
          <version>Safari 14</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 10.15</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>auster.s.chen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>etlovett2+webkit</cc>
    
    <cc>koivisto</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1741867</commentid>
    <comment_count>0</comment_count>
    <who name="">auster.s.chen</who>
    <bug_when>2021-03-19 13:38:19 -0700</bug_when>
    <thetext>JS fiddle example: https://jsfiddle.net/o3295xLz/2/

Steps to reproduce:

1. Create a button element (can also be replicated by non-button elements but those can be fixed by having text content)
2. set button `background-color` to `&apos;currentColor&apos;` and set button `color` to any color
3. create a pseudo selector for any button state, ex: `:hover`, `:active`, and update color attribute to a different color
4. activate button state and notice that the background color does not properly repaint, interacting with the button may intermittently fix

Notes:

- Not reproducible on Safari 13
- Not reproducible on Firefox/Chrome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1742306</commentid>
    <comment_count>1</comment_count>
    <who name="">auster.s.chen</who>
    <bug_when>2021-03-22 11:17:38 -0700</bug_when>
    <thetext>Further testing shows that this may be due to some repainting bug, see jsfiddle here adding in some react states: https://jsfiddle.net/zpo7br92/1/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1742482</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-03-22 14:48:42 -0700</bug_when>
    <thetext>&lt;rdar://problem/75709831&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1750597</commentid>
    <comment_count>3</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2021-04-15 06:40:21 -0700</bug_when>
    <thetext>Appears to be fixed in trunk (also in the current macOS 11.3 seed builds).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>