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: RESOLVED DUPLICATE    
Severity: Normal CC: ahmad.saleem792, dino, kevin_neal, koivisto, megan_gardner, qianlangchen, rik, sam, sebastianzartner, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: macOS 11   

Markus Stange
Reported 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;
Attachments
Kevin Neal
Comment 1 2021-09-08 08:46:55 PDT
Thank you for filing. The appropriate engineers have been notified.
Radar WebKit Bug Importer
Comment 2 2021-09-08 08:47:12 PDT
Anthony Ricaud
Comment 3 2025-01-20 04:34:14 PST
Seems like this was implemented in bug 245533. Maybe Sam can mark this as a duplicate?
Sam Weinig
Comment 4 2025-01-20 07:01:53 PST
*** This bug has been marked as a duplicate of bug 245533 ***
Note You need to log in before you can comment on or make changes to this bug.