Bug 1246046 part 2 - Add reftest for style updating for script-generated animations; r=heycam

This commit is contained in:
Brian Birtles 2016-02-15 16:10:03 +09:00
parent c3fe45107c
commit 063bfa030d
4 changed files with 46 additions and 0 deletions

View File

@ -355,6 +355,9 @@ include unicode/reftest.list
include view-source/reftest.list
# web-animations
include web-animations/reftest.list
# webcomponents/
include webcomponents/reftest.list

View File

@ -0,0 +1,25 @@
<!doctype html>
<html class="reftest-wait">
<head>
<meta charset=utf-8>
<title>Bug 1246046</title>
<style>
div {
width: 0px;
height: 100px;
background: green;
}
</style>
</head>
<body>
<div></div>
<script>
var target = document.querySelector("div");
var anim = target.animate(
[ { width: "0px" }, { width: "200px" } ], 2000);
anim.pause();
anim.currentTime = 1000;
document.documentElement.removeAttribute("class");
</script>
</body>
</html>

View File

@ -0,0 +1,17 @@
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title>Reference green box</title>
<style>
div {
width: 100px;
height: 100px;
background: green;
}
</style>
</head>
<body>
<div></div>
</body>
</html>

View File

@ -0,0 +1 @@
== 1246046-1.html green-box.html