flexbox-single-column-6-ref.html (2177B)
1 <!DOCTYPE html> 2 <!-- Any copyright is dedicated to the Public Domain. 3 http://creativecommons.org/publicdomain/zero/1.0/ --> 4 <html> 5 <meta charset="utf-8"> 6 <title>CSS Flexbox Test Reference: Fragmentation of a fixed block-size single-line column flex container and a fixed block-size flex item that has overflows</title> 7 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 8 <link rel="author" title="Mozilla" href="http://www.mozilla.org/"> 9 10 <style> 11 .multicol { 12 block-size: 50px; 13 inline-size: 190px; 14 column-width: 40px; 15 column-fill: auto; 16 column-gap: 10px; 17 border: 5px solid orange; 18 margin-block-end: 5px; /* Just to separate each sub-testcase visually. */ 19 } 20 .flexContainer { 21 display: block; 22 background: gray; 23 /* border-width is 0 by default; some sub-testcases will increase it. */ 24 border: 0 solid lightgray; 25 /* Block-size is deliberately made shorter than its flex items. */ 26 block-size: 40px; 27 } 28 .border-padding { 29 border-block-width: 10px; 30 padding-block: 5px; 31 } 32 33 article { 34 inline-size: 30px; 35 /* Block-size is deliberately made shorter than its <div> child. */ 36 block-size: 70px; 37 background: cyan; 38 } 39 article > div { 40 inline-size: 20px; 41 block-size: 140px; 42 background: magenta; 43 } 44 </style> 45 46 <body> 47 <!-- Basic one without any margin/border/padding. --> 48 <div class="multicol"> 49 <div class="flexContainer"> 50 <article><div></div></article> 51 </div> 52 </div> 53 54 <!-- Test a container with margin-block-start. --> 55 <div class="multicol"> 56 <div class="flexContainer" style="margin-block-start: 25px"> 57 <article><div></div></article> 58 </div> 59 </div> 60 61 <!-- Test a container not at the top of the column/page. --> 62 <div class="multicol"> 63 <div style="block-size: 25px"></div> 64 <div class="flexContainer"> 65 <article><div></div></article> 66 </div> 67 </div> 68 69 <!-- Test a container with border and padding. --> 70 <div class="multicol"> 71 <div class="flexContainer border-padding"> 72 <article><div></div></article> 73 </div> 74 </div> 75 </body> 76 </html>