OLD | NEW |
1 <!-- Based on fast/repaint/fixed-margin-change-repaint.html --> | 1 <!-- Based on fast/repaint/fixed-margin-change-repaint.html --> |
2 <!DOCTYPE HTML> | 2 <!DOCTYPE HTML> |
3 <script src="resources/paint-invalidation-test.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
4 <style> | 4 <style> |
5 body { | 5 body { |
6 margin: 0; | 6 margin: 0; |
7 } | 7 } |
8 #container { | 8 #container { |
9 position: relative; | 9 position: relative; |
10 top: 40px; | 10 top: 40px; |
11 width: 200px; | 11 width: 200px; |
12 height: 400px; | 12 height: 400px; |
13 } | 13 } |
14 #test { | 14 #test { |
15 position: fixed; | 15 position: fixed; |
16 background-color: green; | 16 background-color: green; |
17 width: 100px; | 17 width: 100px; |
18 height: 100px; | 18 height: 100px; |
19 } | 19 } |
20 </style> | 20 </style> |
21 <script> | 21 <script> |
22 window.expectedPaintInvalidationObjects = [ | |
23 "LayoutBlockFlow (positioned) DIV id='test'", | |
24 ]; | |
25 function paintInvalidationTest() | 22 function paintInvalidationTest() |
26 { | 23 { |
27 document.getElementById("test").style['margin-top'] = '20px'; | 24 document.getElementById("test").style['margin-top'] = '20px'; |
28 } | 25 } |
29 window.onload = runPaintInvalidationTest; | 26 window.onload = runPaintInvalidationTest; |
30 </script> | 27 </script> |
31 <div id="container"> | 28 <div id="container"> |
32 <div id="test"></div> | 29 <div id="test"></div> |
33 </div> | 30 </div> |
34 Tests the repainting of fixed element when margin-top changes. | 31 Tests the repainting of fixed element when margin-top changes. |
OLD | NEW |