multicol-span-all-children-height-006-ref.html (1133B)
1 <!DOCTYPE html> 2 <html> 3 <meta charset="utf-8"> 4 <title>CSS Multi-column Layout Test Reference: Test the borders drawing for a block split by column-span</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 8 <style> 9 article { 10 column-count: 2; 11 width: 400px; 12 background-color: lightgreen; 13 } 14 div.container { 15 background-color: pink; 16 border: 20px solid purple; 17 } 18 div.block { 19 /* This block spreads evenly into two columns, each has 100px height. */ 20 width: 100px; 21 height: 200px; 22 background-color: yellow; 23 } 24 div.column-span { 25 width: 400px; 26 height: 50px; 27 background-color: lightblue; 28 } 29 </style> 30 31 <article> 32 <div class="container" style="border-bottom: none; height: 200px; margin-top: 1em;"> 33 <div class="block">block1</div> 34 </div> 35 </article> 36 <div class="column-span">column-span1</div> 37 <article> 38 <div class="container" style="border-top: none; height: 50px; margin-bottom: 1em;"> 39 <div class="block">block2</div> 40 </div> 41 </article> 42 </html>