OLD | NEW |
(Empty) | |
| 1 <style> |
| 2 #thecol { width: 200px; } |
| 3 td { height: 25px; } |
| 4 </style> |
| 5 <script type="text/javascript"> |
| 6 onload = function () { |
| 7 var col = document.getElementById('thecol'); |
| 8 var output = document.getElementById('test-output'); |
| 9 col.offsetTop; |
| 10 col.style.width="100px"; |
| 11 checkLayout("#td1", output); |
| 12 checkLayout("#td2", output); |
| 13 checkLayout("#td3", output); |
| 14 checkLayout("#td4", output); |
| 15 checkLayout("#td5", output); |
| 16 checkLayout("#td6", output); |
| 17 checkLayout("#td7", output); |
| 18 checkLayout("#td8", output); |
| 19 checkLayout("#td9", output); |
| 20 } |
| 21 </script> |
| 22 <script src="../../resources/check-layout.js"></script> |
| 23 Tests that the width of table cell changes on changing the colgroup width to new
width. |
| 24 <table> |
| 25 <colgroup id="thecol" span="4" style="background-color:red"/> |
| 26 </col> |
| 27 <thead> |
| 28 <tr> |
| 29 <td id="td1" data-expected-width="100"></td> |
| 30 <td id="td2" data-expected-width="100"></td> |
| 31 <td id="td3" data-expected-width="100"></td> |
| 32 </tr> |
| 33 </thead> |
| 34 <tfoot> |
| 35 <tr> |
| 36 <td id="td4" data-expected-width="100"></td> |
| 37 <td id="td5" data-expected-width="100"></td> |
| 38 <td id="td6" data-expected-width="100"></td> |
| 39 </tr> |
| 40 </tfoot> |
| 41 <tbody> |
| 42 <tr> |
| 43 <td id="td7" data-expected-width="100"></td> |
| 44 <td id="td8" data-expected-width="100"></td> |
| 45 <td id="td9" data-expected-width="100"></td> |
| 46 </tr> |
| 47 </tbody> |
| 48 </table> |
| 49 <div id="test-output"></div> |
OLD | NEW |