tor-browser

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

table-as-flex-item-max-content.html (1088B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
      3 <link rel="help"
      4  href="https://drafts.csswg.org/css-flexbox/#intrinsic-cross-sizes">
      5 <link rel="help" href="https://webkit.org/b/253922">
      6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      7 <meta name="assert"
      8  content="A table's max-content width is used for its parent flexbox's max-content calculation. Safari 16.4 uses min-content width.">
      9 
     10 <style>
     11  #reference-overlapped-red {
     12    position: absolute;
     13    background-color: red;
     14    width: 100px;
     15    height: 100px;
     16    z-index: -1;
     17  }
     18 
     19  .inline-block {
     20    float: left;
     21    width: 50px;
     22  }
     23 
     24 </style>
     25 <p>Test passes if there is a filled green square and <strong>no red</strong>.
     26 </p>
     27 
     28 <div id=reference-overlapped-red></div>
     29 <div
     30  style="display: flex; flex-direction: column; height: 100px; width: max-content; background-color: green;">
     31  <div style="display: table">
     32    <div style="display: table-cell">
     33      <div class="inline-block"></div>
     34      <div class="inline-block"></div>
     35    </div>
     36  </div>
     37 </div>