Bug 1382136 - Part 4: add a reftest for 'content' animation on pseudo element. r?hiro
'content' property shoud animate on pseudo element as well.
To confirm the animation, add a reftest.
MozReview-Commit-ID: 4hfx6PLThgZ
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-animations/content-on-pseudo-element-at-beginning.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+ <style>
+ @keyframes anim {
+ from { content: 'content'; }
+ to { content: ''; }
+ }
+ #target::before {
+ content: 'initial';
+ animation: anim 100s paused;
+ }
+ </style>
+ <div id='target'></div>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-animations/content-on-pseudo-element-at-half.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+ <style>
+ @keyframes anim {
+ from { content: ''; }
+ to { content: 'content'; }
+ }
+ #target::before {
+ content: 'initial';
+ animation: anim 100s linear -50s paused;
+ }
+ </style>
+ <div id='target'></div>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-animations/content-on-pseudo-element-ref.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+ <style>
+ #target::before {
+ content: 'content';
+ }
+ </style>
+ <div id='target'></div>
+</html>
--- a/layout/reftests/css-animations/reftest.list
+++ b/layout/reftests/css-animations/reftest.list
@@ -49,9 +49,11 @@ fails == background-position-important.h
== mask-size-after-finish-1a.html mask-anim-ref.html
== mask-size-after-finish-1b.html mask-anim-ref.html
== mask-size-in-delay-1a.html mask-anim-ref.html
== mask-size-in-delay-1b.html mask-anim-ref.html
== stop-animation-on-discarded-pseudo-element.html about:blank
== updating-animation-on-pseudo-element.html updating-animation-on-pseudo-element-ref.html
+== content-on-pseudo-element-at-beginning.html content-on-pseudo-element-ref.html
+== content-on-pseudo-element-at-half.html content-on-pseudo-element-ref.html
== reframe-and-animation-starts-at-the-same-time.html reframe-and-animation-starts-at-the-same-time-ref.html