summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/compat/webkit-text-fill-color-currentColor.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/compat/webkit-text-fill-color-currentColor.html')
-rw-r--r--testing/web-platform/tests/compat/webkit-text-fill-color-currentColor.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/web-platform/tests/compat/webkit-text-fill-color-currentColor.html b/testing/web-platform/tests/compat/webkit-text-fill-color-currentColor.html
new file mode 100644
index 000000000..f4912c934
--- /dev/null
+++ b/testing/web-platform/tests/compat/webkit-text-fill-color-currentColor.html
@@ -0,0 +1,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_true(textDecorationColor == color);
+ assert_true(textDecorationColor != webkiTextFillColor);
+});
+
+</script> \ No newline at end of file