Bug 230007

Summary: Add support for new CSS system colors SelectedItem and SelectedItemText
Product: WebKit Reporter: Markus Stange <mstange>
Component: CSSAssignee: Sam Weinig <sam>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, dino, kevin_neal, koivisto, megan_gardner, qianlangchen, sam, sebastianzartner, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: macOS 11   

Description Markus Stange 2021-09-07 09:52:04 PDT
System colors with the names SelectedItem and SelectedItemText were recently added to CSS: https://drafts.csswg.org/css-color/#valdef-system-color-selecteditem

I'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;
Comment 1 Kevin Neal 2021-09-08 08:46:55 PDT
Thank you for filing. The appropriate engineers have been notified.
Comment 2 Radar WebKit Bug Importer 2021-09-08 08:47:12 PDT
<rdar://problem/82874848>