tor-browser

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

multicol-span-all-restyle-004.html (1208B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <meta charset="utf-8">
      4  <title>CSS Multi-column Layout Test: Restyle the column-span itself</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="help" href="https://github.com/w3c/csswg-drafts/issues/1072">
      9  <link rel="match" href="multicol-span-all-restyle-004-ref.html">
     10  <meta name="assert" content="This test checks change the style of the spanner itself.">
     11 
     12  <script>
     13  function runTest() {
     14    document.body.offsetHeight; // flush layout
     15 
     16    var spanner = document.getElementById("spanner");
     17    spanner.style.backgroundColor = "yellow";
     18 
     19    document.documentElement.removeAttribute("class");
     20  }
     21  </script>
     22 
     23  <style>
     24  #column {
     25    column-count: 1;
     26    width: 400px;
     27    outline: 1px solid black;
     28  }
     29  h3 {
     30    column-span: all;
     31  }
     32  </style>
     33 
     34  <body onload="runTest();">
     35    <article id="column">
     36      <div>
     37        <div>block1</div>
     38        <h3 id="spanner">yellow spanner</h3>
     39        <div>block2</div>
     40      </div>
     41    </article>
     42  </body>
     43 </html>