Bug 1382136 - Part 4: add a reftest for 'content' animation on pseudo element. r?hiro draft
authorDaisuke Akatsuka <dakatsuka@mozilla.com>
Tue, 15 Aug 2017 20:51:55 +0900
changeset 646564 fad889ac7920cbb1da114ac9d863d2713d3d58ee
parent 646563 19071332d97a90c1122d5e547d9db01d27b16bad
child 726278 263511f6c47d36fa5acff814ae0fd66e508b9951
push id74159
push userbmo:dakatsuka@mozilla.com
push dateTue, 15 Aug 2017 11:52:26 +0000
reviewershiro
bugs1382136
milestone57.0a1
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
layout/reftests/css-animations/content-on-pseudo-element-at-beginning.html
layout/reftests/css-animations/content-on-pseudo-element-at-half.html
layout/reftests/css-animations/content-on-pseudo-element-ref.html
layout/reftests/css-animations/reftest.list
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