Upstream version 7.35.139.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/text-based-repaint.js" type="text/javascript"></script>
6     <script type="text/javascript">
7         if (window.testRunner)
8             testRunner.dumpAsTextWithPixelResults();
9
10         function repaintTest()
11         {
12             var moveMeElement = document.getElementById('moveMe');
13             moveMeElement.style.visibility = "visible";
14             moveMeElement.scrollTop = 100;
15             moveMeElement.scrollLeft = 150;
16         }
17     </script>
18 </head>
19 <body style="height:2000px;" onload="runRepaintTest()">
20     <!-- You should see 1 green rectangle in the output and no red. -->
21     <div id="moveMe" style="top: 150px; left: 100px; visibility: hidden" class="fixed clipped"><div class="absolute green" style="top: 100px; left: 150px;"></div></div>
22     <!-- Make sure we are scrolled -->
23     <div style="top: 0px; left: 0px;" class="absolute red"></div>
24     <script>
25         window.scrollTo(1000, 1000);
26     </script>
27 </body>
28 </html>