OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 | 3 |
4 <head> | 4 <head> |
5 <style> | 5 <style> |
6 body { | 6 body { |
7 margin: 0; | 7 margin: 0; |
8 height: 2500px; | 8 height: 2500px; |
9 } | 9 } |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 .wrapper { | 22 .wrapper { |
23 position: absolute; | 23 position: absolute; |
24 background-color: green; | 24 background-color: green; |
25 } | 25 } |
26 | 26 |
27 </style> | 27 </style> |
28 <script> | 28 <script> |
29 if (window.testRunner) { | 29 if (window.testRunner) { |
30 testRunner.waitUntilDone(); | 30 testRunner.waitUntilDone(); |
31 testRunner.dumpAsText(); | 31 testRunner.dumpAsText(); |
32 if (window.internals) { | 32 if (window.internals) |
33 window.internals.settings.setAcceleratedCompositingForFixedPositionE
nabled(true); | 33 window.internals.settings.setAcceleratedCompositingForFixedPositionE
nabled(true); |
34 window.internals.settings.setFixedPositionCreatesStackingContext(tru
e); | |
35 } | |
36 } | 34 } |
37 | 35 |
38 function doScroll() | 36 function doScroll() |
39 { | 37 { |
40 window.setTimeout(function() { | 38 window.setTimeout(function() { |
41 window.scrollTo(0, 200); | 39 window.scrollTo(0, 200); |
42 if (window.internals) { | 40 if (window.internals) { |
43 document.getElementById('results').innerText = internals.layerTreeAs
Text(document); | 41 document.getElementById('results').innerText = internals.layerTreeAs
Text(document); |
44 testRunner.notifyDone(); | 42 testRunner.notifyDone(); |
45 } | 43 } |
46 }, 10); | 44 }, 10); |
47 } | 45 } |
48 | 46 |
49 window.addEventListener('load', doScroll, false); | 47 window.addEventListener('load', doScroll, false); |
50 </script> | 48 </script> |
51 </head> | 49 </head> |
52 <body> | 50 <body> |
53 <pre id="results"></pre> | 51 <pre id="results"></pre> |
54 <div class="fixed"> | 52 <div class="fixed"> |
55 <div class="wrapper box"> | 53 <div class="wrapper box"> |
56 </div> | 54 </div> |
57 </div> | 55 </div> |
58 </body> | 56 </body> |
59 </html> | 57 </html> |
OLD | NEW |