tor-browser

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

single-line-row-flex-fragmentation-043.html (1339B)


      1 <!DOCTYPE html>
      2 <html>
      3  <meta charset="utf-8">
      4  <title>Tests un-fragmentable flex item is pushed to the next column without overflowing the flex container.</title>
      5  <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      6  <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
      7  <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">
      8  <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1743890">
      9  <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
     10  <style>
     11  .multicol {
     12    column-count: 4;
     13    column-gap: 0;
     14    column-fill: auto;
     15    background: red;
     16    width: 100px;
     17    height: 100px;
     18  }
     19 
     20  .multicol > div {
     21    background: green;
     22  }
     23 
     24  .flexbox {
     25    display: flex;
     26    height: 280px;
     27    border: 5px solid green;
     28  }
     29 
     30  .flexbox > div {
     31    contain: size;
     32    width: 50%;
     33    height: 40px;
     34  }
     35  </style>
     36 
     37  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     38  <div class="multicol">
     39    <!-- This div makes the flexbox not at the top of first column. -->
     40    <div style="width: 100%; height: 50px"></div>
     41 
     42    <div class="flexbox">
     43      <div style="align-self: start"></div>
     44      <div style="align-self: end"></div>
     45    </div>
     46 
     47    <div style="width: 100%; height: 60px"></div>
     48  </div>
     49 </html>