Bug 230007 - Add support for new CSS system colors SelectedItem and SelectedItemText
Summary: Add support for new CSS system colors SelectedItem and SelectedItemText
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: All macOS 11
: P2 Normal
Assignee: Sam Weinig
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-09-07 09:52 PDT by Markus Stange
Modified: 2024-04-09 12:23 PDT (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>