flexbox-single-row-3a.html (2554B)
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 and box-decoration-break:clone single-line row 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-row-3-ref.html"> 11 <meta name="assert" content="This test verifies fragmentation of fixed block-size flex items in a block-size:auto single-line row flex container, with various combinations of margin/border/padding, alignments, column-gap, and box-decoration-break:clone."> 12 13 <style> 14 .multicol { 15 block-size: 80px; 16 inline-size: 320px; 17 column-count: 3; 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: row; 27 background: gray; 28 border: 0 solid white; 29 border-block-width: 15px; 30 box-decoration-break: clone; 31 } 32 33 /* Note: flex items are in visual order as "CMYK": cyan, magenta, yellow, black. */ 34 header, nav, article, footer { 35 flex-grow: 1; 36 } 37 header { 38 background: cyan; 39 block-size: 100px; 40 } 41 nav { 42 background: magenta; 43 block-size: 25px; 44 align-self: flex-start; 45 } 46 article { 47 background: yellow; 48 block-size: 50px; 49 align-self: center; 50 } 51 footer { 52 background: black; 53 block-size: 75px; 54 align-self: flex-end; 55 } 56 </style> 57 58 <body> 59 <!-- Test a container with margin-block-start. --> 60 <div class="multicol"> 61 <div class="flexContainer" style="margin-block-start: 25px"> 62 <header></header><nav></nav><article></article><footer></footer> 63 </div> 64 </div> 65 66 <!-- Test a container not at the top of the column/page. --> 67 <div class="multicol"> 68 <div style="block-size: 25px"></div> 69 <div class="flexContainer"> 70 <header></header><nav></nav><article></article><footer></footer> 71 </div> 72 </div> 73 74 <!-- Test a container with column-gap. --> 75 <div class="multicol"> 76 <div class="flexContainer" style="column-gap: 4px"> 77 <header></header><nav></nav><article></article><footer></footer> 78 </div> 79 </div> 80 </body> 81 </html>