OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
2 "http://www.w3.org/TR/html4/strict.dtd"> | 2 "http://www.w3.org/TR/html4/strict.dtd"> |
3 <html lang="en"> | 3 <html lang="en"> |
4 <head> | 4 <head> |
5 <style type="text/css"> | 5 <style type="text/css"> |
6 div.test { width: 200px; height: 120px; border: 1px solid blue; padding: 10p
x; } | 6 div.test { width: 200px; height: 120px; border: 1px solid blue; padding: 10p
x; } |
7 </style> | 7 </style> |
8 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | |
9 <script type="text/javascript"> | |
10 function repaintTest() | |
11 { | |
12 document.getElementById('a').style.height = '40px'; | |
13 document.getElementById('b').style.height = '60px'; | |
14 } | |
15 </script> | |
16 </head> | 8 </head> |
17 <body onload="runRepaintTest();"> | 9 <body> |
18 <div class="test"> | 10 <div class="test"> |
19 <div style="background: teal; padding: 0; outline: solid red 4px; outline-of
fset: -5px;"> | 11 <div style="background: teal; padding: 0; outline: solid red 4px; outline-of
fset: -5px;"> |
20 <div id="a" style="height: 60px; margin: 10px; background:silver;"></div
> | 12 <div id="a" style="height: 40px; margin: 10px; background:silver;"></div
> |
21 </div> | 13 </div> |
22 </div> | 14 </div> |
23 <br> | 15 <br> |
24 <div class="test"> | 16 <div class="test"> |
25 <div style="background: teal; padding: 0; outline: solid red 4px; outline-of
fset: -5px;"> | 17 <div style="background: teal; padding: 0; outline: solid red 4px; outline-of
fset: -5px;"> |
26 <div id="b" style="height: 40px; margin: 10px; background:silver;"></div
> | 18 <div id="b" style="height: 60px; margin: 10px; background:silver;"></div
> |
27 </div> | 19 </div> |
28 </div> | 20 </div> |
29 </body> | 21 </body> |
30 </html> | 22 </html> |
OLD | NEW |