Some tests in css/css-color/parsing/system-color-valid.html are failing
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Jun 2020 22:05:34 +0000 (22:05 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Jun 2020 22:05:34 +0000 (22:05 +0000)
commit0be34ec58a459c137942c9ffae3724527a4788cb
treed90f82d6eff0e5423c2fa98a5fe6b552f7fd396e
parente7910514ebb6af67ec5c00aa91c0d95420818ac8
Some tests in css/css-color/parsing/system-color-valid.html are failing
https://bugs.webkit.org/show_bug.cgi?id=212703

Reviewed by Darin Adler.

LayoutTests/imported/w3c:

* web-platform-tests/css/css-color/parsing/system-color-valid-expected.txt:
Update test results for new system colors added more recently.

Source/WebCore:

Add support for the following system color keywords, added in CSS Color 4 (https://www.w3.org/TR/css-color-4/#css-system-colors):
    ActiveText (Text in active links)
         Implemented identically to -webkit-activelink
    Canvas (Background of application content or documents)
         [NSColor textBackgroundColor] on macOS, Color::white by default.
    CanvasText (Text in application content or documents)
         [NSColor textBackgroundColor] on macOS, Color::black by default.
    Field
         [NSColor controlColor] on macOS, Color::white by default.
    FieldText
         [NSColor controlTextColor] on macOS, Color::black by default.
    LinkText
         [NSColor linkColor] on macOS (when UseSystemAppearance is true), same as -webkit-link (non-visited) by default.
    VisitedText
         [NSColor systemPurpleColor] on macOS (when UseSystemAppearance is true), same as -webkit-link (visited) by default.

* css/CSSValueKeywords.in:
* platform/ThemeTypes.cpp:
(WebCore::operator<<):
* platform/ThemeTypes.h:
* rendering/RenderTheme.cpp:
(WebCore::RenderTheme::systemColor const):
* rendering/RenderThemeMac.mm:
(WebCore::RenderThemeMac::systemColor const):

LayoutTests:

* fast/css/css2-system-color.html:
* platform/mac/fast/css/css2-system-color-expected.txt:
Update system color test for new system colors added more recently.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@262658 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/css2-system-color.html
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/system-color-valid-expected.txt
LayoutTests/platform/mac/fast/css/css2-system-color-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/css/CSSValueKeywords.in
Source/WebCore/platform/ThemeTypes.cpp
Source/WebCore/platform/ThemeTypes.h
Source/WebCore/rendering/RenderTheme.cpp
Source/WebCore/rendering/RenderThemeMac.mm