5c34891ffadfcca84ee2ae80e3ca53e463767b35
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / repaint / fixed-table-overflow.html
1 <html>
2 <head>
3     <link rel="stylesheet" href="resources/default.css">
4     <style>
5         table { top: 0px; left: 0px; border-spacing: 0px; position: absolute; }
6         td { background: green; padding: 0px; border-style: none; border: 0px; }
7         td.fixed { position: fixed; left: 100px; top: 0px; }
8     </style>
9     <script src="../../resources/run-after-display.js"></script>
10     <script src="resources/text-based-repaint.js"></script>
11     <script>
12         if (window.testRunner) {
13             testRunner.waitUntilDone();
14             testRunner.dumpAsTextWithPixelResults();
15         }
16
17         window.onload = function()
18         {
19             window.scrollTo(0, 100);
20             runAfterDisplay(function() {
21                 runRepaintTest();
22                 if (window.testRunner)
23                     testRunner.notifyDone();
24             });
25         }
26
27         function repaintTest()
28         {
29             document.getElementById('moveMe').className = "fixed";
30         }
31     </script>
32 </head>
33 <body style="height:2000px;">
34     <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: RenderLayer fixed position logic needs more basic testing -->
35     <!-- You should see no red on this page. -->
36     <table>
37         <tr><td></td><td></td></tr>
38         <tr><td class="red"></td><td id="moveMe"><div style="position: relative; left: -100px; top: 0px;" class="green"></div></td></tr>
39 </body>
40 </html>