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