| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css"> | 3 <link rel="stylesheet" href="../../../fast/repaint/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> | 9 <script> |
| 10 if (window.testRunner) | |
| 11 testRunner.dumpAsTextWithPixelResults(); | |
| 12 | |
| 13 window.onload = function() { | 10 window.onload = function() { |
| 14 window.scrollTo(0, 100); | 11 window.scrollTo(0, 100); |
| 15 runRepaintTest(); | 12 runRepaintTest(); |
| 16 }; | 13 }; |
| 17 | 14 |
| 18 function repaintTest() | 15 function repaintTest() |
| 19 { | 16 { |
| 20 document.getElementById('moveMe').className = "fixed"; | 17 document.getElementById('moveMe').className = "fixed"; |
| 21 } | 18 } |
| 22 </script> | 19 </script> |
| 23 </head> | 20 </head> |
| 24 <body style="height:2000px;"> | 21 <body style="height:2000px;"> |
| 25 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f
ixed position logic needs more basic testing --> | 22 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f
ixed position logic needs more basic testing --> |
| 26 <!-- You should see no red on this page. --> | 23 <!-- You should see no red on this page. --> |
| 27 <table> | 24 <table> |
| 28 <tr><td></td><td></td></tr> | 25 <tr><td></td><td></td></tr> |
| 29 <tr><td class="red"></td><td id="moveMe"><div style="position: relative;
left: -100px; top: 0px;" class="green"></div></td></tr> | 26 <tr><td class="red"></td><td id="moveMe"><div style="position: relative;
left: -100px; top: 0px;" class="green"></div></td></tr> |
| 30 </body> | 27 </body> |
| 31 </html> | 28 </html> |
| OLD | NEW |