tor-browser

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

clearance-parallel-flow-002.html (1760B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
      3 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1370969">
      4 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      5 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
      6 <div style="columns:2; column-fill:auto; gap:0; width:100px; height:100px; background:red;">
      7  <div style="height:70px;">
      8    <div style="height:70px; background:green;"></div>
      9    <div style="float:left; width:100%; height:10px; background:green;"></div>
     10    <div style="height:50px;"></div>
     11    <div style="float:left; width:20px; height:20px; background:green;"></div>
     12  </div>
     13  <!-- We start layout of the flex container in the first column. We'll clear
     14       past the first float, but the second float will end up in the second
     15       column, in a parallel flow (due to overflow caused by the restricted
     16       block-size of the container). When we resume the flex container in the
     17       second container, we shouldn't apply any additional clearance, since
     18       that's something that's placed *before* the block-start margin box, and
     19       we're way past that in the second column. Being a well-behaved formatting
     20       context root, though, means that the flex container shouldn't overlap
     21       with the float in the second column. -->
     22  <div style="display:flex; flex-flow:column; clear:left;">
     23    <div style="height:20px; background:green;"></div>
     24    <div style="margin-left:-20px; width:50px; height:20px; background:green;"></div>
     25    <div style="width:30px; height:20px; background:green;"></div>
     26    <div style="margin-left:-20px; width:50px; height:60px; background:green;"></div>
     27  </div>
     28 </div>