Bug 1299741 part 12 - Add reftest for currentcolor interpolation. r?birtles
MozReview-Commit-ID: 5xZGekxb2EY
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-transitions/currentcolor-interpolation-1-ref.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<style>
+@font-face {
+ font-family: Ahem;
+ src: url(../fonts/Ahem.ttf);
+}
+body {
+ font: 52px Ahem;
+ text-emphasis: "X";
+}
+div {
+ display: inline-block;
+}
+#test1 {
+ color: #00fc00;
+ text-emphasis-color: #54a800;
+ -webkit-text-fill-color: #a85400;
+}
+#test2 {
+ color: #0054a8;
+ text-emphasis-color: #543870;
+ -webkit-text-fill-color: #a81c38;
+}
+</style>
+<div id="test1">X</div>
+<div id="test2">X</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-transitions/currentcolor-interpolation-1.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<style>
+@font-face {
+ font-family: Ahem;
+ src: url(../fonts/Ahem.ttf);
+}
+body {
+ font: 52px Ahem;
+ text-emphasis: "X";
+}
+div {
+ display: inline-block;
+}
+
+@keyframes test1 {
+ 0% {
+ text-emphasis-color: #fc0000;
+ -webkit-text-fill-color: currentcolor;
+ }
+ 100% {
+ text-emphasis-color: currentcolor;
+ -webkit-text-fill-color: #fc0000;
+ }
+}
+#test1 {
+ color: #00fc00;
+ animation: test1 252s -168s linear paused;
+}
+
+@keyframes test2 {
+ 0% {
+ color: #00fc00;
+ text-emphasis-color: #fc0000;
+ -webkit-text-fill-color: currentcolor;
+ }
+ 100% {
+ color: #0000fc;
+ text-emphasis-color: currentcolor;
+ -webkit-text-fill-color: #fc0000;
+ }
+}
+#test2 {
+ animation: test2 252s -168s linear paused;
+}
+</style>
+<div id="test1">X</div>
+<div id="test2">X</div>
--- a/layout/reftests/css-transitions/reftest.list
+++ b/layout/reftests/css-transitions/reftest.list
@@ -1,4 +1,5 @@
== transitions-inline-already-wrapped-1.html transitions-inline-ref.html
== transitions-inline-already-wrapped-2.html transitions-inline-ref.html
== transitions-inline-rewrap-1.html transitions-inline-ref.html
== transitions-inline-rewrap-2.html transitions-inline-ref.html
+== currentcolor-interpolation-1.html currentcolor-interpolation-1-ref.html