OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style type="text/css" media="screen"> | 4 <style type="text/css" media="screen"> |
5 .container { | 5 .container { |
6 position: absolute; | 6 position: absolute; |
7 padding: 10px; | 7 padding: 10px; |
8 z-index: 1; | 8 z-index: 1; |
9 } | 9 } |
10 .composited { | 10 .composited { |
11 position: absolute; | 11 position: absolute; |
12 -webkit-transform: translateZ(0); | 12 transform: translateZ(0); |
13 } | 13 } |
14 </style> | 14 </style> |
15 <script type="text/javascript" charset="utf-8"> | 15 <script type="text/javascript" charset="utf-8"> |
16 if (window.testRunner) | 16 if (window.testRunner) |
17 testRunner.waitUntilDone(); | 17 testRunner.waitUntilDone(); |
18 | 18 |
19 function doTest() | 19 function doTest() |
20 { | 20 { |
21 // Need to wait for compositing layers to be updated. | 21 // Need to wait for compositing layers to be updated. |
22 window.setTimeout(function() { | 22 window.setTimeout(function() { |
23 document.getElementById('iframe').contentWindow.scrollTo(0, 120)
; | 23 document.getElementById('iframe').contentWindow.scrollTo(0, 120)
; |
24 if (window.testRunner) | 24 if (window.testRunner) |
25 testRunner.notifyDone(); | 25 testRunner.notifyDone(); |
26 }, 0); | 26 }, 0); |
27 } | 27 } |
28 | 28 |
29 window.addEventListener('load', doTest, false); | 29 window.addEventListener('load', doTest, false); |
30 </script> | 30 </script> |
31 </head> | 31 </head> |
32 <body> | 32 <body> |
33 <p>In pixel results, the blue box should be scrolled out of view.</p> | 33 <p>In pixel results, the blue box should be scrolled out of view.</p> |
34 <div class="container"> | 34 <div class="container"> |
35 <iframe id="iframe" src="resources/subframe.html" style="width: 300px; heigh
t: 200px;"></iframe> | 35 <iframe id="iframe" src="resources/subframe.html" style="width: 300px; heigh
t: 200px;"></iframe> |
36 </div> | 36 </div> |
37 <div class="composited"> | 37 <div class="composited"> |
38 </div> | 38 </div> |
39 | 39 |
40 </body> | 40 </body> |
41 </html> | 41 </html> |
OLD | NEW |