OLD | NEW |
1 <!DOCTYPE> | 1 <!DOCTYPE> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Partial layout compositing update</title> | 4 <title>Partial layout compositing update</title> |
5 | 5 |
6 <style type="text/css" media="screen"> | 6 <style type="text/css" media="screen"> |
7 .container { | 7 .container { |
8 position: relative; | 8 position: relative; |
9 width: 400px; | 9 width: 400px; |
10 height: 200px; | 10 height: 200px; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 </style> | 42 </style> |
43 <script type="text/javascript" charset="utf-8"> | 43 <script type="text/javascript" charset="utf-8"> |
44 if (window.testRunner) | 44 if (window.testRunner) |
45 testRunner.waitUntilDone(); | 45 testRunner.waitUntilDone(); |
46 | 46 |
47 function startProgram() | 47 function startProgram() |
48 { | 48 { |
49 var panel = document.getElementById("panel"); | 49 var panel = document.getElementById("panel"); |
50 panel.addEventListener('webkitTransitionEnd', function() { | 50 panel.addEventListener('webkitTransitionEnd', function() { |
51 if (window.testRunner) | 51 if (window.testRunner) |
52 testRunner.notifyDone(); | 52 window.setTimeout(function() { testRunner.notifyDone(); }, 0); |
53 }, false); | 53 }, false); |
54 panel.style.left = "0"; | 54 panel.style.left = "0"; |
55 } | 55 } |
56 | 56 |
57 window.addEventListener('load', startProgram, false) | 57 window.addEventListener('load', startProgram, false) |
58 </script> | 58 </script> |
59 </head> | 59 </head> |
60 <body> | 60 <body> |
61 | 61 |
62 <p>The green box should always obscure the red box below.</p> | 62 <p>The green box should always obscure the red box below.</p> |
63 <div class="container"> | 63 <div class="container"> |
64 <div id="panel" class="panel"> | 64 <div id="panel" class="panel"> |
65 <div class="indicator box"></div> | 65 <div class="indicator box"></div> |
66 <div class="content box"></div> | 66 <div class="content box"></div> |
67 </div> | 67 </div> |
68 </div> | 68 </div> |
69 | 69 |
70 </body> | 70 </body> |
71 </html> | 71 </html> |
OLD | NEW |