tor-browser

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

single-line-row-flex-fragmentation-044.html (1231B)


      1 <!DOCTYPE html>
      2 <html>
      3  <meta charset="utf-8">
      4  <title>Test that the first flex item is pushed to the second column due to insufficient space, and the browser shouldn't create infinite columns.</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=1827582">
      9  <link rel="match" href="single-line-row-flex-fragmentation-044-ref.html">
     10 
     11  <style>
     12  .multicol {
     13    column-count: 2;
     14    column-gap: 0;
     15    column-fill: auto;
     16    width: 200px;
     17    border: 5px solid gray;
     18    height: 0px;
     19  }
     20  .flexbox {
     21    display: flex;
     22    width: 100px;
     23  }
     24  .flexbox > div {
     25    width: 50px;
     26    contain: size;
     27  }
     28  </style>
     29 
     30  <div class="multicol">
     31    <div class="flexbox">
     32      <!-- To reproduce the bug, the first item should have margin-top, and its
     33           block-end should be smaller than the second item's block-end. -->
     34      <div style="height: 10px; background: pink; margin-top: 5px;"></div>
     35      <div style="height: 20px; background: orange"></div>
     36    </div>
     37  </div>
     38 </html>