Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / transitions / transform-on-large-layer.html
blob31ce38383191170a43d36e6ac6d5cac59eb823fe
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Animating transform on large tiled layer.</title>
5 <style type="text/css">
6 #box {
7 -webkit-transition: -webkit-transform 1s step-end;
8 display: block;
9 width: 1000px;
10 height: 2000px;
11 background-color: green;
14 #sandbox {
15 height: 1000px;
16 width: 1000px;
17 background-color: red;
18 overflow: hidden;
21 .end {
22 transform: translate3d(0, -1000px, 0);
25 .start {
26 transform: translate3d(0, 100%, 0);
28 </style>
29 <script type="text/javascript">
30 function run()
32 if (window.testRunner) {
33 testRunner.useUnfortunateSynchronousResizeMode();
34 testRunner.waitUntilDone();
35 window.setTimeout(notifyDone, 1200);
37 window.onresize = function() {
38 var box = document.getElementById("box");
39 box.className = "end";
41 window.resizeTo(1600,1200);
43 function notifyDone()
45 testRunner.notifyDone();
47 </script>
48 </head>
49 <body onload="run()">
50 <div id=description>
51 The test passes if the box below turns green.
52 </div>
53 <div id=sandbox>
54 <div id="box" class="start"><font style="opacity:0">ABC</font></div>
55 </div>
56 </body>
57 </html>