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