| OLD | NEW |
| 1 <!-- Based on fast/repaint/resize-with-border.html --> |
| 1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 2 <script src="resources/text-based-repaint.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
| 3 <script> | 4 <script> |
| 4 function repaintTest() | 5 window.expectedPaintInvalidationObjects = [ |
| 6 "LayoutBlockFlow (positioned) DIV id='div'", |
| 7 ]; |
| 8 function paintInvalidationTest() |
| 5 { | 9 { |
| 6 document.getElementById('div').style.width = '400px'; | 10 document.getElementById('div').style.width = '400px'; |
| 7 } | 11 } |
| 8 window.onload = runRepaintTest; | 12 window.onload = runPaintInvalidationTest; |
| 9 </script> | 13 </script> |
| 10 <style> | 14 <style> |
| 11 body { | 15 body { |
| 12 margin: 0; | 16 margin: 0; |
| 13 } | 17 } |
| 14 #div { | 18 #div { |
| 15 position: absolute; | 19 position: absolute; |
| 16 top: 100px; | 20 top: 100px; |
| 17 left: 100px; | 21 left: 100px; |
| 18 width: 200px; | 22 width: 200px; |
| 19 height: 200px; | 23 height: 200px; |
| 20 border: green 10px solid; | 24 border: green 10px solid; |
| 21 } | 25 } |
| 22 </style> | 26 </style> |
| 23 <div> | 27 <div> |
| 24 Tests repaint when a box with border is resized. | 28 Tests repaint when a box with border is resized. |
| 25 Passes if the result paint rects cover all changed part, | 29 Passes if the result paint rects cover all changed part, |
| 26 the new border is correctly drawn and there is no residue of the old border. | 30 the new border is correctly drawn and there is no residue of the old border. |
| 27 </div> | 31 </div> |
| 28 <div id="div"></div> | 32 <div id="div"></div> |
| OLD | NEW |