tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

table-as-item-stretch-cross-size-4.html (1113B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
      3 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#valdef-align-items-stretch">
      4 <link rel="help" href="https://drafts.csswg.org/css-tables-3/#used-min-width-of-table">
      5 <link rel="bookmark" href="https://crbug.com/1189359">
      6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      7 <meta name="assert" content="Flex doesn't stretch the table to an inline size less than the table's used min-width.">
      8 
      9 <style>
     10 #reference-overlapped-red {
     11  position: absolute;
     12  background-color: red;
     13  width: 100px;
     14  height: 100px;
     15  z-index: -1;
     16 }
     17 </style>
     18 
     19 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     20 <div id="reference-overlapped-red"></div>
     21 
     22 <!-- No table html elements so I don't have to reset border-spacing, cellpadding etc -->
     23 <div style="display: flex; flex-direction: column; width: 50px;">
     24  <div style="display: table; background: green">
     25    <div style="display: table-cell;">
     26      <div style="height: 100px; width: 100px;"></div>
     27    </div>
     28  </div>
     29 </div>