Revision a72a06f7e3d919f8d4f08cb3171291cf6482fd85 authored by Simon Pieters on 08 June 2018, 15:54:45 UTC, committed by Simon Pieters on 08 June 2018, 15:54:45 UTC
Part of https://github.com/whatwg/html/pull/3499. This does not yet test :heading().
1 parent 7684fe3
webkit-text-fill-color-currentColor.html
<!doctype html>
<title>Test that currentColor is not affected by -webkit-text-fill-color</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<p id="target" style="text-decoration-color: currentColor; color: blue; -webkit-text-fill-color: red;"></p>
<script>
test(function() {
var target = document.getElementById("target");
var cs = window.getComputedStyle(target, null);
var textDecorationColor = cs.getPropertyValue('text-decoration-color');
var color = cs.getPropertyValue('color');
var webkiTextFillColor = cs.getPropertyValue('-webkit-text-fill-color');
assert_true(textDecorationColor == color);
assert_true(textDecorationColor != webkiTextFillColor);
});
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...