OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=10522</title> | 3 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=10522</title> |
4 <style type="text/css"> | 4 <style type="text/css"> |
5 .float { float: right; height: 40px; width: 40px; } | 5 .float { float: right; height: 40px; width: 40px; } |
6 .test { height: 100px; background-color: aliceblue } | 6 .test { height: 100px; background-color: aliceblue } |
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('target').style.height='20px'; | |
13 document.getElementById('cell').style.height='20px'; | |
14 } | |
15 </script> | |
16 </head> | 8 </head> |
17 <body onload="runRepaintTest()"> | 9 <body> |
18 <div class="test"> | 10 <div class="test"> |
19 <div class="float"></div> | 11 <div class="float"></div> |
20 <div style="clear: right; background-color: purple; width: 40px; padding
: 3px;"> | 12 <div style="clear: right; background-color: purple; width: 40px; padding
: 3px;"> |
21 <div style="height: 40px; width: 0;" id="target"> | 13 <div style="height: 20px; width: 0;" id="target"> |
22 </div> | 14 </div> |
23 </div> | 15 </div> |
24 </div> | 16 </div> |
25 | 17 |
26 <div class="test"> | 18 <div class="test"> |
27 <div class="float"></div> | 19 <div class="float"></div> |
28 <table style="clear: both; background-color: purple;"> | 20 <table style="clear: both; background-color: purple;"> |
29 <tr> | 21 <tr> |
30 <td id="cell" style="height: 40px; width: 40px;"> | 22 <td id="cell" style="height: 20px; width: 40px;"> |
31 </td> | 23 </td> |
32 </tr> | 24 </tr> |
33 </table> | 25 </table> |
34 </div> | 26 </div> |
35 </body> | 27 </body> |
36 </html> | 28 </html> |
OLD | NEW |