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
This commit is contained in:
Daisuke Akatsuka 2017-08-15 20:51:55 +09:00
parent 550258c416
commit 55696f4e05
4 changed files with 39 additions and 0 deletions

View File

@ -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>

View File

@ -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>

View File

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<style>
#target::before {
content: 'content';
}
</style>
<div id='target'></div>
</html>

View File

@ -54,4 +54,6 @@ fails == background-position-important.html background-position-ref.html # This
== 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