Bug 230007
| Summary: | Add support for new CSS system colors SelectedItem and SelectedItemText | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Markus Stange <mstange> |
| Component: | CSS | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Kevin Neal
Thank you for filing. The appropriate engineers have been notified.
Radar WebKit Bug Importer
<rdar://problem/82874848>
Anthony Ricaud
Seems like this was implemented in bug 245533. Maybe Sam can mark this as a duplicate?
Sam Weinig
*** This bug has been marked as a duplicate of bug 245533 ***