OLD | NEW |
| (Empty) |
1 <!-- Based on fast/repaint/fixed-and-absolute-position-scrolled.html --> | |
2 <html> | |
3 <head> | |
4 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css"> | |
5 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> | |
6 <script type="text/javascript"> | |
7 window.onload = function() { | |
8 window.scrollTo(0, 500); | |
9 runPaintInvalidationTest(); | |
10 } | |
11 | |
12 function paintInvalidationTest() | |
13 { | |
14 document.getElementById('container').style.position = 'static'; | |
15 } | |
16 </script> | |
17 </head> | |
18 <body style="height:2000px;"> | |
19 <!-- You should see 1 green rectangle in the output and no red. --> | |
20 <div style="top: 200px; left: 100px;" class="fixed red"></div> | |
21 <div id="container" style="top: 5000px;" class="relative"><div id="absoluteD
iv" style="top: 700px; left:100px;" class="absolute green"></div></div> | |
22 </body> | |
23 </html> | |
OLD | NEW |