tor-browser

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

multicol-span-all-children-height-005.html (1623B)


      1 <!DOCTYPE html>
      2 <html>
      3  <meta charset="utf-8">
      4  <title>CSS Multi-column Layout Test: Test the block-size distribution across column-span split in a column-fill:auto multicol container</title>
      5  <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      6  <link rel="author" title="Mozilla" href="https://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-005-ref.html">
      9  <meta name="assert" content="This test verifies that a block container with a fixed block-size, split by column-span, distributes just enough block-size to hold its children.">
     10 
     11  <style>
     12  article {
     13    column-count: 1;
     14    column-fill: auto;
     15    width: 200px;
     16    background-color: lightgreen;
     17  }
     18  div.container {
     19    height: 250px;
     20    background-color: pink;
     21  }
     22  div.block {
     23    width: 100px;
     24    height: 100px;
     25    background-color: yellow;
     26  }
     27  div.column-span {
     28    column-span: all;
     29    height: 50px;
     30    background-color: lightblue;
     31  }
     32  </style>
     33 
     34  <article>
     35    <!-- The container is split by the column-spans.
     36         a) Before column-span1, it distributes 100px height into the sole column.
     37         b) In between column-span1 and column-span2, same distribution as a).
     38         c) After column-span2, it has 50px height left.
     39    -->
     40    <div class="container">
     41      <div class="block">block1</div>
     42      <div class="column-span">column-span1</div>
     43      <div class="block">block2</div>
     44      <div class="column-span">column-span2</div>
     45      <div class="block">block3</div>
     46    </div>
     47  </article>
     48 </html>