Bug 1267312 - Part 1. A mochitest to verify that when text-decoration-color is currentColor, the value of it should be the same with color prop. r=jfkthame
authorcku <cku@mozilla.com>
Tue, 27 Sep 2016 02:51:54 +0800
changeset 315347 114ea1bc2c234d52f0e9c1a2b1d29da046e6d036
parent 315346 8009d19e29e0c4312cbc5f6dca6c32697dafd46f
child 315348 23c3dc155f732c8b71adaa546b330b6a0b291af5
push id30748
push usercbook@mozilla.com
push dateWed, 28 Sep 2016 13:53:19 +0000
treeherdermozilla-central@8c84b7618840 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjfkthame
bugs1267312
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1267312 - Part 1. A mochitest to verify that when text-decoration-color is currentColor, the value of it should be the same with color prop. r=jfkthame MozReview-Commit-ID: LBcHLWPawB7
testing/web-platform/meta/compat/webkit-text-fill-color-currentColor.html.ini
testing/web-platform/tests/compat/webkit-text-fill-color-currentColor.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/compat/webkit-text-fill-color-currentColor.html.ini
@@ -0,0 +1,3 @@
+[webkit-text-fill-color-currentColor.html]
+  type: testharness
+  prefs: [layout.css.prefixes.webkit:true]
\ No newline at end of file
new file mode 100644
--- /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