tor-browser

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

multicol-span-all-dynamic-add-006.html (1224B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <meta charset="utf-8">
      4  <title>CSS Multi-column Layout Test: Append a text in column-span</title>
      5  <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      6  <link rel="author" title="Mozilla" href="http://www.mozilla.org/">
      7  <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#column-span">
      8  <link rel="match" href="multicol-span-all-dynamic-add-002-ref.html">
      9  <meta name="assert" content="This test checks adding a text in column-span should be rendered correctly.">
     10 
     11  <script>
     12  function runTest() {
     13    document.body.offsetHeight;
     14 
     15    /* Append a text in column-span */
     16    var text = document.createTextNode("spanner");
     17    var spanner = document.getElementById("spanner");
     18    spanner.appendChild(text)
     19 
     20    document.documentElement.removeAttribute("class");
     21  }
     22  </script>
     23 
     24  <style>
     25  #column {
     26    column-count: 3;
     27    column-rule: 6px solid;
     28    width: 400px;
     29    outline: 1px solid black;
     30  }
     31  h3 {
     32    column-span: all;
     33    outline: 1px solid blue;
     34  }
     35  </style>
     36 
     37  <body onload="runTest();">
     38    <article id="column">
     39      <div>block1</div>
     40      <h3 id="spanner"></h3>
     41      <div>block2</div>
     42    </article>
     43  </body>
     44 </html>