tor-browser

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

out-of-flow-in-multicolumn-011.html (1045B)


      1 <!DOCTYPE html>
      2 <link rel="help" href="https://www.w3.org/TR/css-position-3/#abspos-breaking">
      3 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      4 <!-- Fragmented OOF element with block-size percentage resolution and overflow. -->
      5 <style>
      6  #multicol {
      7    /* Set things up so that the absolutely positioned element takes up two
      8       columns of 50px each. Start in the second column so offset by negative
      9       50px margin. */
     10    columns: 5;
     11    width: 250px;
     12    height: 100px;
     13    margin-left: -50px;
     14    column-fill: auto;
     15    column-gap: 0px;
     16  }
     17  .rel {
     18    position: relative;
     19  }
     20  .abs {
     21    position: absolute;
     22    top: 0px;
     23    width: 50px;
     24    height: 100%;
     25    background: green;
     26  }
     27 </style>
     28 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     29 <div id="multicol">
     30  <div style="height: 100px;"></div>
     31  <div class="rel">
     32    <div class="abs"></div>
     33    <div style="width: 44px; height: 200px;">
     34      <div style="width: 33px; height: 400px;"></div>
     35    </div>
     36  </div>
     37 </div>