tor-browser

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

multicol-span-all-dynamic-add-007.html (1420B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <meta charset="utf-8">
      4  <title>CSS Multi-column Layout Test: Append the block to the inline element which contains "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-007-ref.html">
      9  <meta name="assert" content="This test checks a dynamically added block element should be rendered correctly.">
     10 
     11  <script>
     12  function runTest() {
     13    document.body.offsetHeight;
     14 
     15    /* Append the block to the inline element which contains "column-span". */
     16    var block = document.createElement("div");
     17    var text = document.createTextNode("block2");
     18    block.appendChild(text);
     19 
     20    var span = document.getElementById("span");
     21    span.appendChild(block);
     22 
     23    document.documentElement.removeAttribute("class");
     24  }
     25  </script>
     26 
     27  <style>
     28  #column {
     29    column-count: 3;
     30    column-rule: 6px solid;
     31    width: 400px;
     32    outline: 1px solid black;
     33  }
     34  h3 {
     35    column-span: all;
     36    outline: 1px solid blue;
     37  }
     38  </style>
     39 
     40  <body onload="runTest();">
     41    <article id="column">
     42      <span id="span">
     43        inline1
     44        <h3>spanner</h3>
     45        <div>block1</div>
     46        inline2
     47      </span>
     48    </article>
     49  </body>
     50 </html>