tor-browser

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

break-overflowed-block-dynamic-001.html (1389B)


      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 overflowed block element</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    height: 25px;
     24  }
     25  #target {
     26    background: green;
     27    width: 50px;
     28    height: 200px; /* 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 id="block">
     43        <div id="target"></div>
     44      </div>
     45    </div>
     46  </body>
     47 </html>