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