Commit 2d6438dc authored by Rune Lillesveen's avatar Rune Lillesveen Committed by Commit Bot

Check that initial color value matches canvastext.

Resolved in https://github.com/w3c/csswg-drafts/issues/4608

Pull request: https://github.com/w3c/csswg-drafts/pull/4714

Change-Id: Id902a8f7b920872a3dede346c98c87092a6147e4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2027418Reviewed-by: default avatarAnders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#736792}
parent 93546e12
<!doctype html>
<title>CSS Color 4: Initial value of the color property</title>
<link rel="help" href="https://drafts.csswg.org/css-color/#the-color-property">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
#ref { color: canvastext }
#initial { color: initial }
</style>
<div id="ref"></div>
<div id="initial"></div>
<script>
const canvastext = getComputedStyle(ref).color;
test(() => {
assert_equals(getComputedStyle(document.documentElement).color, canvastext);
}, "Check that the resolved value for the initial color on the root element matches canvastext.");
test(() => {
assert_equals(getComputedStyle(initial).color, canvastext);
}, "Check that the resolved value of an explicit color:initial matches canvastext.");
</script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment