tor-browser

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

multi-line-column-flex-fragmentation-040.html (1331B)


      1 <!DOCTYPE html>
      2 <title>
      3  Multi-line column flex fragmentation: Negative margins.
      4 </title>
      5 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">
      6 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      7 <style>
      8  #flex {
      9    display: flex;
     10    flex-direction: column;
     11    flex-wrap: wrap;
     12    height: 500px;
     13  }
     14  #flex > div {
     15    height: 100px;
     16    width: 10px;
     17  }
     18  #flex > div:nth-child(odd) {
     19    background: green;
     20    margin-top: -100px;
     21    break-before: column;
     22  }
     23 </style>
     24 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     25 <div style="height: 100px; width: 100px; background: red; position: absolute">
     26  <div style="position: absolute; left: 10px; width: 10px; height: 100px; background: green;"></div>
     27  <div style="margin-top: 100px; width: 100px; height: 100px; columns: 5; column-gap: 0; column-fill: auto;">
     28    <div id="flex">
     29      <div></div>
     30      <div></div>
     31      <div></div>
     32      <div></div>
     33      <div></div>
     34      <div></div>
     35      <div></div>
     36      <div></div>
     37      <div></div>
     38      <div></div>
     39      <div style="background: white;"></div>
     40      <div></div>
     41      <div></div>
     42      <div></div>
     43      <div></div>
     44      <div></div>
     45      <div></div>
     46      <div></div>
     47      <div></div>
     48      <div></div>
     49    </div>
     50  </div>
     51 </div>