OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 #container { | 5 #container { |
6 width: 200px; | 6 width: 200px; |
7 height: 200px; | 7 height: 200px; |
8 overflow: auto; | 8 overflow: auto; |
9 } | 9 } |
10 | 10 |
11 #content { | 11 #content { |
12 width: 100px; | 12 width: 100px; |
13 height: 100px; | 13 height: 100px; |
14 background-color: yellow; | 14 background-color: yellow; |
15 } | 15 } |
16 </style> | 16 </style> |
17 | 17 |
18 <script type="text/javascript" charset="utf-8"> | 18 <script type="text/javascript" charset="utf-8"> |
19 if (window.testRunner) | 19 if (window.testRunner) |
20 testRunner.dumpAsText(); | 20 testRunner.dumpAsText(); |
21 | 21 |
22 if (window.internals) | 22 if (window.internals) |
23 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable
d(true); | 23 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable
d(true); |
24 | 24 |
25 function doTest() | 25 function doTest() |
26 { | 26 { |
| 27 document.getElementById('content').style.height = '1000px'; |
27 document.body.offsetHeight; | 28 document.body.offsetHeight; |
28 document.getElementById('content').style.height = '1000px'; | 29 |
29 if (window.internals) | 30 if (window.internals) |
30 document.getElementById('result').innerText = window.internals.nonFastSc
rollableRects(document).length ? "FAIL" : "PASS"; | 31 document.getElementById('result').innerText = window.internals.nonFastSc
rollableRects(document).length ? "FAIL" : "PASS"; |
31 } | 32 } |
32 | 33 |
33 window.addEventListener('load', doTest, false); | 34 window.addEventListener('load', doTest, false); |
34 </script> | 35 </script> |
35 </head> | 36 </head> |
36 | 37 |
37 <body> | 38 <body> |
38 <div id="container"> | 39 <div id="container"> |
39 <div id="content"></div> | 40 <div id="content"></div> |
40 </div> | 41 </div> |
41 <pre id="result"></pre> | 42 <pre id="result"></pre> |
42 </body> | 43 </body> |
43 </html> | 44 </html> |
44 | 45 |
OLD | NEW |