https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 210e5bc8e07cb74096b2f8e4c0fa0d75d463d4f4 authored by Geoffrey Sneddon on 24 March 2018, 14:57:11 UTC
Add tests for wptserve.pipes.ReplacementTokenizer
Tip revision: 210e5bc
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>
back to top