flexbox-single-column-1b.html (3099B)
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: Fragmentation of block-size:auto single-line column-reverse flex container with fixed block-size flex items</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 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> 10 <link rel="match" href="flexbox-single-column-1-ref.html"> 11 <meta name="assert" content="This test verifies fragmentation of fixed block-size flex items in a block-size:auto single-line column-reverse flex container, with various combinations of margin/border/padding, alignments, and row-gap."> 12 13 <style> 14 .multicol { 15 block-size: 50px; 16 inline-size: 190px; 17 column-width: 40px; 18 column-fill: auto; 19 column-gap: 10px; 20 border: 5px solid orange; 21 margin-block-end: 5px; /* Just to separate each sub-testcase visually. */ 22 } 23 .flexContainer { 24 display: flex; 25 flex-wrap: nowrap; 26 flex-direction: column-reverse; 27 background: gray; 28 /* border-width is 0 by default; some sub-testcases will increase it. */ 29 border: 0 solid lightgray; 30 } 31 .border-padding { 32 border-block-width: 10px; 33 padding-block: 5px; 34 } 35 36 /* Note: flex items are in visual order as "CMYK": cyan, magenta, yellow, black. */ 37 footer { 38 background: cyan; 39 block-size: 50px; 40 } 41 article, nav, header { 42 inline-size: 30px; 43 } 44 article { 45 background: magenta; 46 block-size: 25px; 47 align-self: flex-start; 48 } 49 nav { 50 background: yellow; 51 block-size: 25px; 52 align-self: center; 53 } 54 header { 55 background: black; 56 block-size: 50px; 57 align-self: flex-end; 58 } 59 </style> 60 61 <body> 62 <!-- Basic one without any margin/border/padding. --> 63 <div class="multicol"> 64 <div class="flexContainer"> 65 <header></header><nav></nav><article></article><footer></footer> 66 </div> 67 </div> 68 69 <!-- Test a container with margin-block-start. --> 70 <div class="multicol"> 71 <div class="flexContainer" style="margin-block-start: 25px"> 72 <header></header><nav></nav><article></article><footer></footer> 73 </div> 74 </div> 75 76 <!-- Test a container not at the top of the column/page. --> 77 <div class="multicol"> 78 <div style="block-size: 25px"></div> 79 <div class="flexContainer"> 80 <header></header><nav></nav><article></article><footer></footer> 81 </div> 82 </div> 83 84 <!-- Test a container with border and padding. --> 85 <div class="multicol"> 86 <div class="flexContainer border-padding"> 87 <header></header><nav></nav><article></article><footer></footer> 88 </div> 89 </div> 90 91 <!-- Test a container with border, padding, and row-gap. --> 92 <div class="multicol"> 93 <div class="flexContainer border-padding" style="row-gap: 5px"> 94 <header></header><nav></nav><article></article><footer></footer> 95 </div> 96 </div> 97 </body> 98 </html>