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