| 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 <script src="resources/text-based-repaint.js"></script> | 4 <script src="resources/text-based-repaint.js"></script> |
| 5 <script> | 5 <script> |
| 6 if (window.testRunner) | 6 if (window.testRunner) |
| 7 testRunner.dumpAsTextWithPixelResults(); | 7 testRunner.dumpAsTextWithPixelResults(); |
| 8 | 8 |
| 9 window.onload = function() { | 9 window.onload = function() { |
| 10 window.scrollTo(0, 500); | 10 window.scrollTo(0, 500); |
| 11 runRepaintAndPixelTest(); | 11 runRepaintAndPixelTest(); |
| 12 }; | 12 }; |
| 13 | 13 |
| 14 function repaintTest() | 14 function repaintTest() |
| 15 { | 15 { |
| 16 document.getElementById('t').style.position = "fixed"; | 16 document.getElementById('t').style.position = "fixed"; |
| 17 } | 17 } |
| 18 </script> | 18 </script> |
| 19 </head> | 19 </head> |
| 20 | 20 |
| 21 <body style="height:2000px;"> | 21 <body style="height:2000px;"> |
| 22 <!-- 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 --> |
| 23 <!-- You should see no red on this page. --> | 23 <!-- You should see no red on this page. --> |
| 24 <div style="top: 200px;" class="red fixed"></div> | 24 <div style="top: 200px;" class="red fixed"></div> |
| 25 <div id="t" style="top: 200px;" class="green absolute"></div> | 25 <div id="t" style="top: 200px;" class="green absolute"></div> |
| 26 </body> | 26 </body> |
| 27 </html> | 27 </html> |
| OLD | NEW |