tor-browser

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

break-float-dynamic-002.html (1492B)


      1 <!DOCTYPE html>
      2 <!-- Any copyright is dedicated to the Public Domain.
      3     http://creativecommons.org/publicdomain/zero/1.0/ -->
      4 <html>
      5  <meta charset="utf-8">
      6  <title>Test for dynamic re-pagination of a nested float element with clearance</title>
      7  <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      8  <link rel="author" title="Mozilla" href="http://www.mozilla.org/">
      9  <link rel="help" href="https://drafts.csswg.org/css-break/#possible-breaks">
     10  <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1559961">
     11  <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
     12 
     13  <style>
     14  #multicol {
     15    columns: 2;
     16    column-fill: auto;
     17    column-gap: 0;
     18    height: 400px; /* Must be large enough so that .target doesn't break initially. */
     19    width: 100px;
     20    background: red;
     21  }
     22  .block {
     23    width: 50px;
     24    background: green;
     25  }
     26  .target {
     27    float: left;
     28    height: 160px; /* Expected to be broken into 2 columns after runTest() */
     29  }
     30  </style>
     31 
     32  <script>
     33  function runTest() {
     34    document.body.offsetHeight;
     35    document.getElementById("multicol").style.height = "100px";
     36  }
     37  </script>
     38 
     39  <body onload="runTest()">
     40    <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     41    <div id="multicol">
     42      <div>
     43        <div class="block" style="height: 40px"></div>
     44        <div class="block target"></div>
     45        <div style="clear: both"></div>
     46      </div>
     47    </div>
     48  </body>
     49 </html>