Bug 1650988 [wpt PR 24478] - Make system color keywords compute to themselves, a...
commit7f0f517f85a88d9940d7a5ab0c65de8dae9efd31
authorKevin Babbitt <kbabbitt@microsoft.com>
Thu, 9 Jul 2020 14:18:38 +0000 (9 14:18 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 10 Jul 2020 10:38:32 +0000 (10 10:38 +0000)
tree8a8385651abc36f63c50e72ce0235f0a40c65212
parenteaed45cb16707552f2ec5552295440b9381c7c56
Bug 1650988 [wpt PR 24478] - Make system color keywords compute to themselves, a=testonly

Automatic update from web-platform-tests
Make system color keywords compute to themselves

Prior to this change, system color keywords would be resolved to RGBA
values at computed-value time. With this change, we defer resolution
until resolved-value time, to align with css-color-4.

The kernel of the change is in StyleBuilderConverter which allows for
storing an unresolved system color keyword, and in StyleColor which can
now be constructed from a system color keyword and requires a
WebColorScheme value to resolve colors. The remainder of the change
consists of updates at call sites to plumb in the used color scheme.

Bug: 1081945
Change-Id: I3b704cdf38c72b5284ad61a20e28825ee3e8e9e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2253198
Commit-Queue: Kevin Babbitt <kbabbitt@microsoft.com>
Reviewed-by: Fredrik Söderquist <fs@opera.com>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Alison Maher <almaher@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#786380}

--

wpt-commits: 1ebdb4d2bf1fd490e9f34b9e22cd10c44cd4db8e
wpt-pr: 24478
testing/web-platform/tests/css/css-color/system-color-compute.html [new file with mode: 0644]