tor-browser

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

col-wrap-006.html (1194B)


      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/#intrinsic-sizes">
      4 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      5 <meta name="assert"
      6  content="flex item order is accounted for when determining inline content sizes of column-wrap flexboxes.">
      7 
      8 <style>
      9  #reference-overlapped-red {
     10    position: absolute;
     11    background-color: red;
     12    width: 100px;
     13    height: 100px;
     14    z-index: -1;
     15  }
     16 
     17  .item {
     18    /* Remove min-height so we don't have to think about it. */
     19    min-height: 0px;
     20    width: 50px;
     21    flex: 0 0 auto;
     22  }
     23 
     24 </style>
     25 
     26 <p>Test passes if there is a filled green square and <strong>no red</strong>.
     27 </p>
     28 
     29 <div id=reference-overlapped-red></div>
     30 
     31 <!--  An implementation that ignored order could make the max-content size of this flexbox 150px. -->
     32 <div
     33  style="display: flex; flex-flow: column wrap; width: max-content; height: 100px; background: green;">
     34  <div class="item" style="height: 90px; order: 0;"></div>
     35  <div class="item" style="height: 100px; order: 2;"></div>
     36  <div class="item" style="height: 10px; order: 1;"></div>
     37 </div>