tor-browser

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

multicol-span-all-children-height-002.html (1371B)


      1 <!DOCTYPE html>
      2 <html>
      3  <meta charset="utf-8">
      4  <title>CSS Multi-column Layout Test: Test a multi-column container with percentage height children</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-children-height-002-ref.html">
      9  <meta name="assert" content="This test checks the percentage height children under multicol container compute the percentage relative to the entire multicol, not just the part after the column-span.">
     10 
     11  <style>
     12  article {
     13    column-count: 2;
     14    width: 400px;
     15    height: 200px;
     16    background-color: lightgreen;
     17    border: 5px solid purple;
     18  }
     19  div.block1 {
     20    background-color: yellow;
     21    height: 100%; /* Spread evenly into two columns, each 100px. */
     22  }
     23  div.spanner {
     24    column-span: all;
     25    height: 25%;
     26    background-color: lightblue;
     27  }
     28  div.block2 {
     29    background-color: yellow;
     30    /* Column container has only 25% height left, so two extra overflow columns
     31       are created. Total 4 columns, each 50px. */
     32    height: 100%;
     33  }
     34  </style>
     35 
     36  <article>
     37    <div class="block1">block1</div>
     38    <div class="spanner">spanner</div>
     39    <div class="block2">block2</div>
     40  </article>
     41 </html>