OLD | NEW |
1 <!-- Based on fast/repaint/absolute-position-change-containing-block.html --> | 1 <!-- Based on fast/repaint/absolute-position-change-containing-block.html --> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css"> | 4 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css"> |
5 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> | 5 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> |
6 <script type="text/javascript"> | 6 <script type="text/javascript"> |
7 window.expectedPaintInvalidationObjects = [ | |
8 "LayoutBlockFlow (positioned) DIV id='container' class='fixed blue'"
, | |
9 "LayoutBlockFlow (positioned) DIV class='absolute green'", | |
10 "LayoutBlockFlow DIV id='container' class='fixed blue'", | |
11 "LayoutBlockFlow (positioned) DIV class='absolute green'", | |
12 "LayoutBlockFlow BODY", | |
13 "LayoutBlockFlow DIV id='container' class='fixed blue'", | |
14 "LayoutBlockFlow (positioned) DIV class='absolute green'", | |
15 ]; | |
16 function paintInvalidationTest() | 7 function paintInvalidationTest() |
17 { | 8 { |
18 document.getElementById('container').style.position = 'static'; | 9 document.getElementById('container').style.position = 'static'; |
19 } | 10 } |
20 </script> | 11 </script> |
21 </head> | 12 </head> |
22 <body style="height:2000px;" onload="runPaintInvalidationTest()"> | 13 <body style="height:2000px;" onload="runPaintInvalidationTest()"> |
23 <!-- You should see 2 overlapping rectangles in the output: a green one (on
top) and a blue one. --> | 14 <!-- You should see 2 overlapping rectangles in the output: a green one (on
top) and a blue one. --> |
24 <div id="container" style="top: 5000px;" class="fixed blue"><div style="top:
100px; left:100px;" class="absolute green"></div></div> | 15 <div id="container" style="top: 5000px;" class="fixed blue"><div style="top:
100px; left:100px;" class="absolute green"></div></div> |
25 </body> | 16 </body> |
26 </html> | 17 </html> |
OLD | NEW |