blob: 31ce38383191170a43d36e6ac6d5cac59eb823fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
<!DOCTYPE html>
<html>
<head>
<title>Animating transform on large tiled layer.</title>
<style type="text/css">
#box {
-webkit-transition: -webkit-transform 1s step-end;
display: block;
width: 1000px;
height: 2000px;
background-color: green;
}
#sandbox {
height: 1000px;
width: 1000px;
background-color: red;
overflow: hidden;
}
.end {
transform: translate3d(0, -1000px, 0);
}
.start {
transform: translate3d(0, 100%, 0);
}
</style>
<script type="text/javascript">
function run()
{
if (window.testRunner) {
testRunner.useUnfortunateSynchronousResizeMode();
testRunner.waitUntilDone();
window.setTimeout(notifyDone, 1200);
}
window.onresize = function() {
var box = document.getElementById("box");
box.className = "end";
}
window.resizeTo(1600,1200);
}
function notifyDone()
{
testRunner.notifyDone();
}
</script>
</head>
<body onload="run()">
<div id=description>
The test passes if the box below turns green.
</div>
<div id=sandbox>
<div id="box" class="start"><font style="opacity:0">ABC</font></div>
</div>
</body>
</html>
|