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