tor-browser

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

single-line-column-flex-fragmentation-062.html (1394B)


      1 <!DOCTYPE html>
      2 <html>
      3  <meta charset="utf-8">
      4  <title>Tests un-fragmentable flex item is pushed to the second column if it cannot fit in the first column.</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  <link rel="stylesheet" href="/fonts/ahem.css">
     11  <style>
     12  .multicol {
     13    column-count: 2;
     14    column-gap: 0;
     15    column-fill: auto;
     16    background: red;
     17    width: 100px;
     18    height: 100px;
     19  }
     20 
     21  .flexbox {
     22    display: flex;
     23    flex-direction: column-reverse;
     24    row-gap: 5px;
     25    font: 40px/1 Ahem;
     26    background: green;
     27    color: green;
     28    border: solid green;
     29    border-width: 15px 5px;
     30  }
     31  </style>
     32 
     33  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     34  <div class="multicol">
     35    <!-- This div makes the flexbox not at the top of first column. -->
     36    <div style="width: 50px; height: 20px; background: green;"></div>
     37 
     38    <div class="flexbox">
     39      <div>X</div>
     40      <div>X</div> <!-- The second item should be at the top of the second column. -->
     41      <div>X</div>
     42    </div>
     43  </div>
     44 </html>