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