Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Update named colors list to match CSS Color 4
https://bugs.webkit.org/show_bug.cgi?id=245533 <rdar://100287586> Reviewed by Darin Adler. Added new system colors from CSS Color 4 with the following default platform agnostic values: ButtonBorder white (matching existing ActiveBorder and InactiveBorder values). SelectedItem lightGray (matching existing Menu value) SelectedItemText black (matching existing *Text values) Mark yellow (matching background-color of <mark> in UA stylesheet) MarkText black (matching color of <mark> in UA stylesheet) AccentColor sRGB { 0, 122, 255 } (matching color of system-control-accent) AccentColorText black (matching existing *Text values) As with other system colors, it may make sense to specialize these per-platform, but this change does not aim to do that. Also re-organized CSSValueKeywords.in to group some related color names together, and added comments to help clarify what set things belong to. As a way of organizing, and in preparation for an upcoming change to deprecated system colors, the deprecated system colors were grouped together and a helper function added. As we now have a named colors Mark and MarkText, the UA stylesheet for <mark> was updated to use the named colors (no observable change in behavior though, as the colors still resolve to yellow and black). * Source/WebCore/css/CSSValueKeywords.in: * Source/WebCore/css/StyleColor.cpp: (WebCore::isVGAPaletteColor): (WebCore::StyleColor::isAbsoluteColorKeyword): (WebCore::StyleColor::isSystemColorKeyword): (WebCore::StyleColor::isDeprecatedSystemColorKeyword): * Source/WebCore/css/StyleColor.h: * Source/WebCore/css/html.css: * Source/WebCore/rendering/RenderTheme.cpp: (WebCore::RenderTheme::systemColor const): Canonical link: https://commits.webkit.org/254840@main
- Loading branch information
Showing
6 changed files
with
249 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.