table-as-item-fixed-min-width-2.html (926B)
1 <!DOCTYPE html> 2 <title>table is flex item</title> 3 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org"> 4 <link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#layout-algorithm" title="9. Flex Layout Algorithm"> 5 <link rel="help" href="https://drafts.csswg.org/css-tables-3/#used-min-width-of-table"> 6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 7 <meta name="assert" content="Flex item table's min-width is honored when it is larger than the table's min-content width"> 8 9 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 10 11 <div style="display: flex; width: 100px;"> 12 <div style="display: table; min-width: 100px; background: green;"> 13 <div style="display:table-cell;"> 14 <div style="width: 50px; height: 100px;"></div> 15 </div> 16 </div> 17 <div style="height: 100px; background: red; flex-basis: 100px; min-width: 0px;"></div> 18 </div>