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