min-height-table.html (862B)
1 <!doctype html> 2 <title>min-height can grow a table over its intrinsic size</title> 3 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1651530"> 4 <link rel="help" href="https://drafts.csswg.org/css-tables/#computing-the-table-height"> 5 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5336"> 6 <link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez"> 7 <link rel="author" href="https://mozilla.org" title="Mozilla"> 8 <link rel="match" href="min-height-table-ref.html"> 9 <style> 10 td { 11 padding: 0; 12 } 13 14 table { 15 border-spacing: 0; 16 min-height: 312px; /* To account for the padding + border, which apply to the wrapper box, not the grid box */ 17 border: 1px solid black; 18 background: green; 19 padding: 5px; 20 } 21 div { 22 width: 300px; 23 height: 5px; 24 } 25 </style> 26 <table> 27 <tr> 28 <td><div></div></td> 29 </tr> 30 </table>