| 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: 50px; position: absolute; } | 5 table { top: 0px; left: 0px; border-spacing: 50px; 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: 50px; top: 100px; } | 7 td.fixed { position: fixed; left: 50px; top: 100px; } |
| 8 </style> | 8 </style> |
| 9 <script src="../../resources/run-after-display.js"></script> | 9 <script src="../../resources/run-after-display.js"></script> |
| 10 <script src="resources/text-based-repaint.js"></script> | 10 <script src="resources/text-based-repaint.js"></script> |
| 11 <script> | 11 <script> |
| 12 if (window.testRunner) | 12 if (window.testRunner) |
| 13 testRunner.dumpAsTextWithPixelResults(); | 13 testRunner.dumpAsTextWithPixelResults(); |
| 14 | 14 |
| 15 window.onload = function() { | 15 window.onload = function() { |
| 16 window.scrollTo(0, 100); | 16 window.scrollTo(0, 100); |
| 17 runRepaintTest(); | 17 runRepaintTest(); |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 function repaintTest() | 20 function repaintTest() |
| 21 { | 21 { |
| 22 document.getElementById('moveMe').className = "fixed"; | 22 document.getElementById('moveMe').className = "fixed"; |
| 23 } | 23 } |
| 24 </script> | 24 </script> |
| 25 </head> | 25 </head> |
| 26 <body style="height:2000px;"> | 26 <body style="height:2000px;"> |
| 27 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: RenderL
ayer fixed position logic needs more basic testing --> | 27 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f
ixed position logic needs more basic testing --> |
| 28 <!-- You should see no red on this page. --> | 28 <!-- You should see no red on this page. --> |
| 29 <table> | 29 <table> |
| 30 <tr><td></td><td></td></tr> | 30 <tr><td></td><td></td></tr> |
| 31 <tr><td class="red"></td><td id="moveMe"></td></tr> | 31 <tr><td class="red"></td><td id="moveMe"></td></tr> |
| 32 </body> | 32 </body> |
| 33 </html> | 33 </html> |
| OLD | NEW |