mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1246046 part 2 - Add reftest for style updating for script-generated animations; r=heycam
This commit is contained in:
parent
7be789ef02
commit
7dd57a0384
@ -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
|
||||
|
||||
|
25
layout/reftests/web-animations/1246046-1.html
Normal file
25
layout/reftests/web-animations/1246046-1.html
Normal 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>
|
17
layout/reftests/web-animations/green-box.html
Normal file
17
layout/reftests/web-animations/green-box.html
Normal 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>
|
1
layout/reftests/web-animations/reftest.list
Normal file
1
layout/reftests/web-animations/reftest.list
Normal file
@ -0,0 +1 @@
|
||||
== 1246046-1.html green-box.html
|
Loading…
Reference in New Issue
Block a user