<?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>230007</bug_id>
          
          <creation_ts>2021-09-07 09:52:04 -0700</creation_ts>
          <short_desc>Add support for new CSS system colors SelectedItem and SelectedItemText</short_desc>
          <delta_ts>2025-01-20 07:01:53 -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>All</rep_platform>
          <op_sys>macOS 11</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>245533</dup_id>
          
          <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 name="Markus Stange">mstange</reporter>
          <assigned_to name="Sam Weinig">sam</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>dino</cc>
    
    <cc>kevin_neal</cc>
    
    <cc>koivisto</cc>
    
    <cc>megan_gardner</cc>
    
    <cc>qianlangchen</cc>
    
    <cc>rik</cc>
    
    <cc>sam</cc>
    
    <cc>sebastianzartner</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1791068</commentid>
    <comment_count>0</comment_count>
    <who name="Markus Stange">mstange</who>
    <bug_when>2021-09-07 09:52:04 -0700</bug_when>
    <thetext>System colors with the names SelectedItem and SelectedItemText were recently added to CSS: https://drafts.csswg.org/css-color/#valdef-system-color-selecteditem

I&apos;m filing this bug so that I have a bug number to reference.

Judging by the following code in the WebInspector stylesheets, for WebKit these new keywords would correspond to the same colors as the existing colors -apple-system-selected-content-background and -apple-system-alternate-selected-text, respectively:

https://trac.webkit.org/browser/webkit/trunk/Source/WebInspectorUI/UserInterface/Views/Variables.css?rev=281182#L419
419	    --selected-foreground-color: -apple-system-alternate-selected-text;
420	    --selected-background-color: -apple-system-selected-content-background;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791474</commentid>
    <comment_count>1</comment_count>
    <who name="Kevin Neal">kevin_neal</who>
    <bug_when>2021-09-08 08:46:55 -0700</bug_when>
    <thetext>Thank you for filing. The appropriate engineers have been notified.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791475</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-09-08 08:47:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/82874848&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2088490</commentid>
    <comment_count>3</comment_count>
    <who name="Anthony Ricaud">rik</who>
    <bug_when>2025-01-20 04:34:14 -0800</bug_when>
    <thetext>Seems like this was implemented in bug 245533. Maybe Sam can mark this as a duplicate?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2088512</commentid>
    <comment_count>4</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2025-01-20 07:01:53 -0800</bug_when>
    <thetext>

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

    </bug>

</bugzilla>