Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / repaint / scroll-absolute-layer-with-reflection.html
blob5fa9595fd3de2e887c77f1c5b430b2f4ed829f3b
1 <html>
2 <head>
3 <link rel="stylesheet" href="resources/default.css"></style>
4 <script src="resources/text-based-repaint.js" type="text/javascript"></script>
5 <script type="text/javascript">
6 if (window.testRunner)
7 testRunner.dumpAsTextWithPixelResults();
9 function repaintTest()
11 var moveMeElement = document.getElementById('moveMe');
12 moveMeElement.scrollTop = 250;
13 moveMeElement.scrollLeft = 150;
15 </script>
16 </head>
17 <body style="height:2000px;" onload="runRepaintTest()">
18 <!-- You should see 1 green rectangle rotated in the output and no red. -->
19 <div id="moveMe" style="top: 230px; left: 250px;" class="absolute clipped">
20 <div class="relative reflected" style="height: 50px; top: 250px; left: 150px;">
21 <div class="green"></div>
22 </div>
23 <div class="absolute red" style="top: 0px; left: 0px; height: 250px; width: 150px;"></div>
24 </div>
25 <!-- Make sure we are scrolled -->
26 <div style="top: 0px; left: 0px;" class="absolute red"></div>
27 <script>
28 window.scrollTo(100, 180);
29 </script>
30 </body>
31 </html>