OLD | NEW |
| 1 <!-- Based on fast/repaint/fixed-scroll-simple.html --> |
1 <html> | 2 <html> |
2 <head> | 3 <head> |
3 <link rel="stylesheet" href="resources/default.css"> | 4 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css"> |
4 <script src="resources/text-based-repaint.js"></script> | 5 <script src="resources/paint-invalidation-test.js"></script> |
5 <script> | 6 <script> |
6 if (window.testRunner) | 7 if (window.testRunner) |
7 testRunner.dumpAsTextWithPixelResults(); | 8 testRunner.dumpAsTextWithPixelResults(); |
8 | 9 |
9 function repaintTest() | 10 window.expectedPaintInvalidationObjects = [ |
| 11 "LayoutBlockFlow (positioned) DIV class='green'", |
| 12 ]; |
| 13 function paintInvalidationTest() |
10 { | 14 { |
11 window.scrollTo(0, 100); | 15 window.scrollTo(0, 100); |
12 } | 16 } |
13 </script> | 17 </script> |
14 </head> | 18 </head> |
15 <body style="height:2000px;" onload="runRepaintTest()"> | 19 <body style="height:2000px;" onload="runPaintInvalidationTest()"> |
16 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f
ixed position logic needs more basic testing --> | 20 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer f
ixed position logic needs more basic testing --> |
17 <!-- You should see no red on this page. --> | 21 <!-- You should see no red on this page. --> |
18 <div style="position: absolute; top: 200px;" class="red"></div> | 22 <div style="position: absolute; top: 200px;" class="red"></div> |
19 <div style="position: fixed; top: 100px;" class="green"></div> | 23 <div style="position: fixed; top: 100px;" class="green"></div> |
20 </body> | 24 </body> |
21 </html> | 25 </html> |
OLD | NEW |