Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / repaint / scroll-fixed-layer-with-no-visible-content.html
1 <html>
2 <head>
3     <title></title>
4     <link rel="stylesheet" href="resources/default.css"></style>
5     <script src="../../resources/run-after-display.js"></script>
6     <script src="resources/text-based-repaint.js" type="text/javascript"></script>
7     <script type="text/javascript">
8         if (window.testRunner) {
9             testRunner.waitUntilDone();
10             testRunner.dumpAsTextWithPixelResults();
11         }
12
13         window.onload = function()
14         {
15             window.scrollTo(1000, 1000);
16             runAfterDisplay(function() {
17                 runRepaintTest();
18                 if (window.testRunner)
19                     testRunner.notifyDone();
20             });
21         }
22
23         function repaintTest()
24         {
25             var moveMeElement = document.getElementById('moveMe');
26             moveMeElement.style.visibility = "visible";
27             moveMeElement.scrollTop = 100;
28             moveMeElement.scrollLeft = 150;
29         }
30     </script>
31 </head>
32 <body style="height:2000px;">
33     <!-- You should see 1 green rectangle in the output and no red. -->
34     <div id="moveMe" style="top: 150px; left: 100px; visibility: hidden" class="fixed clipped"><div class="absolute green" style="top: 100px; left: 150px;"></div></div>
35     <!-- Make sure we are scrolled -->
36     <div style="top: 0px; left: 0px;" class="absolute red"></div>
37 </body>
38 </html>