visibility-collapse-colspan-003-ref.html (1074B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>CSS Test Reference: Overflow clipping in cells that span columns</title> 4 <link rel="author" title="Joy Yu" href="mailto:joysyu@mit.edu"> 5 <link rel="help" href="https://drafts.csswg.org/css-tables-3/#visibility-collapse-cell-rendering"> 6 <link rel="help" href="https://drafts.csswg.org/css-tables-3/#computing-the-table-width"> 7 <style> 8 .firstCol { 9 width: 65px; 10 } 11 .thirdCol { 12 width: 160px; 13 } 14 </style> 15 <table> 16 <col style="background-color:red;"> 17 <col style="background-color: blue; visibility:collapse;"> 18 <col style="background-color: green;"> 19 <tr> 20 <td class="firstCol">Row 1</td> 21 <td>Row 1 wordword</td> 22 <td class="thirdCol">Row 1 wordwordword</td> 23 </tr> 24 <tr> 25 <td class="firstCol">Row 2</td> 26 <td>Row 2 wordwordword</td> 27 <td class="thirdCol">Row 2 wordword</td> 28 </tr> 29 <tr> 30 <td class="firstCol">Row 3</td> 31 <td>Row 3 word</td> 32 <td class="thirdCol">Row 3 wordwordwordword</td> 33 </tr> 34 <tr> 35 <td colspan="3">superlongwordsuperlongwordsuper</td> 36 </tr> 37 </table>