tor-browser

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

multicol-span-all-dynamic-add-013.html (1520B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <meta charset="utf-8">
      4  <title>CSS Multi-column Layout Test: Insert a block into a multicol details containing column-span:all</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-013-ref.html">
      9  <meta name="assert" content="This test checks that <summary> is still rendered as the first element after inserting a block into multicol <details>, at the place before <summary>.">
     10 
     11  <script>
     12  function runTest() {
     13    document.body.offsetHeight;
     14 
     15    // Create a div, and insert it as the first child of <details>,
     16    // just before <summary>.
     17    var block1 = document.createElement("div");
     18    var block1Text = document.createTextNode("block1");
     19    block1.appendChild(block1Text);
     20 
     21    var details = document.getElementById("details");
     22    details.insertBefore(block1, details.children[0]);
     23 
     24    document.documentElement.removeAttribute("class");
     25  }
     26  </script>
     27 
     28  <style>
     29  #details {
     30    column-count: 3;
     31    column-rule: 6px solid;
     32    width: 400px;
     33    outline: 1px solid black;
     34  }
     35  h3 {
     36    column-span: all;
     37    outline: 1px solid blue;
     38  }
     39  </style>
     40 
     41  <body onload="runTest();">
     42    <details open id="details">
     43      <summary>Summary</summary>
     44      <h3>spanner</h3>
     45      <div>block2</div>
     46    </details>
     47  </body>
     48 </html>