OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <style> |
| 5 col { |
| 6 width: 200px; |
| 7 } |
| 8 td { |
| 9 background-color: #66f; |
| 10 height: 25px; |
| 11 } |
| 12 </style> |
| 13 <script type="text/javascript"> |
| 14 function runTest() { |
| 15 var col = document.getElementById('thecol'); |
| 16 col.offsetTop; |
| 17 col.style.width="100px"; |
| 18 window.checkLayout("td", document.getElementById("test-output"))
; |
| 19 } |
| 20 </script> |
| 21 <script src="../../resources/check-layout.js"></script> |
| 22 </head> |
| 23 <body onload="runTest()"> |
| 24 Tests that the width of table cell changes on changing the colgroup widt
h to new width. |
| 25 <table> |
| 26 <colgroup> |
| 27 <col id="thecol"> |
| 28 </colgroup> |
| 29 <tbody> |
| 30 <tr> |
| 31 <td id="colWidth" data-expected-width="100"></td> |
| 32 </tr> |
| 33 </tbody> |
| 34 </table> |
| 35 <div id="test-output"></div> |
| 36 </body> |
| 37 </html> |
OLD | NEW |