Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / repaint / fixed-after-scroll.html
1 <html>
2 <head>
3     <link rel="stylesheet" href="resources/default.css">
4     <script src="resources/repaint.js"></script>
5     <script>
6         if (window.testRunner)
7             testRunner.dumpAsTextWithPixelResults();
8
9         function repaintTest()
10         {
11             document.getElementById('t').style.position = "fixed";
12         }
13     </script>
14 </head>
15
16 <body style="height:2000px;" onload="runRepaintTest()">
17     <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: RenderLayer fixed position logic needs more basic testing -->
18     <!-- You should see no red on this page. -->
19     <div style="top: 200px;" class="red fixed"></div>
20     <div id="t" style="top: 200px;" class="green absolute"></div>
21     <script>
22         window.scrollTo(0, 500);
23     </script>
24 </body>
25 </html>