table-intrinsic-size-002.html (928B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 4 <link rel="author" title="Mozilla" href="https://www.mozilla.org/"> 5 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1917056"> 6 <link rel="match" href="../reference/ref-filled-green-100px-square-only.html"> 7 <meta name="assert" content="This test verifies that a table's content-box inline size is never smaller than its minimum intrinsic inline size."> 8 9 <style> 10 .outer { 11 width: min-content; 12 background: green; 13 } 14 .table { 15 display: table; 16 max-inline-size: 30px; /* Smaller than .content's inline size */ 17 block-size: 100px; 18 border-inline: 10px solid green; 19 margin-inline: 10px; 20 } 21 .content { 22 inline-size: 60px; 23 block-size: 100px; 24 } 25 </style> 26 27 <p>Test passes if there is a filled green square.</p> 28 <div class="outer"> 29 <div class="table"> 30 <div class="content"></div> 31 </div> 32 </div>