Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / repaint / scroll-in-transformed-layer.html
blob150ccea0124fd3a1b36ad17642f03430eab7fe67
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 = 100;
13 moveMeElement.scrollLeft = 50;
14 var classes = moveMeElement.getAttribute("class");
15 moveMeElement.setAttribute("class", classes + " rotated");
17 </script>
18 </head>
19 <body style="height:2000px;" onload="runRepaintTest()">
20 <!-- You should see 1 green rectangle rotated in the output and no red. -->
21 <div id="moveMe" style="top: 150px; left: 100px" class="absolute clipped">
22 <div class="absolute green" style="top: 100px; left: 50px"></div>
23 <div class="absolute red" style="top: 0px; left: 0px;"></div>
24 </div>
25 </body>
26 </html>