Have fixedPositionCreatesStackingContext be on by default everywhere
[WebKit-https.git] / LayoutTests / compositing / repaint / scroll-fixed-layer-no-content.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <script type="text/javascript">
5         if (window.testRunner)
6             testRunner.dumpAsText();
7
8         if (window.internals)
9             internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
10
11         function test()
12         {
13             document.body.offsetHeight;
14             if (window.internals)
15                 window.internals.startTrackingRepaints();
16
17             window.scrollTo(0, 1000);
18             window.scrollTo(0, 100);
19
20             if (window.internals)
21                 document.getElementById('repaintRects').textContent = window.internals.repaintRectsAsText();
22         }
23     </script>
24 </head>
25 <body style="height:2000px" onload="test()">
26     <div style="position: fixed; top: 100px; left: 100px; width: 200px; height: 200px"></div>
27     There should be no repaints here:
28     <pre id="repaintRects"></pre>
29 </body>
30 </html>