summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/compat/webkit-text-fill-color-currentColor.html
blob: 9b89781f9fa0ebdcb97651c5abd73d755bd9ea48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!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_equals(textDecorationColor, color);
  assert_not_equals(textDecorationColor, webkiTextFillColor);
});

</script>