tor-browser

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

multicol-span-all-children-height-003.html (1482B)


      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="help" href="https://drafts.csswg.org/css-break/#breaking-rules">
      9  <link rel="match" href="multicol-span-all-children-height-003-ref.html">
     10  <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.">
     11 
     12  <style>
     13  article {
     14    column-count: 2;
     15    width: 400px;
     16    height: 200px;
     17    background-color: lightgreen;
     18    border: 5px solid purple;
     19  }
     20  div.block1 {
     21    background-color: yellow;
     22    /* This overflows the column container, so one extra column is created. */
     23    height: 300%;
     24  }
     25  div.spanner {
     26    column-span: all;
     27    height: 25%;
     28    background-color: lightblue;
     29  }
     30  div.block2 {
     31    background-color: yellow;
     32    /* No height left for this block. According to the breaking rules, the
     33       column container creates 1px column boxes for it. */
     34    height: 100%;
     35  }
     36  </style>
     37 
     38  <article>
     39    <div class="block1">block1</div>
     40    <div class="spanner">spanner</div>
     41    <div class="block2">block2</div>
     42  </article>
     43 </html>