flexbox-single-row-vertical-rl-3-ref.html (2710B)
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 single-line row flex container</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 html { 12 writing-mode: vertical-rl; 13 } 14 .multicol { 15 block-size: 50px; 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 padding-block: 15px; 23 } 24 .flexContainer { 25 background: gray; 26 /* border-width is 0 by default; some sub-testcases will increase it. */ 27 border: 0 solid white; 28 block-size: 100px; 29 position: relative; 30 } 31 .gap { 32 inline-size: 4px; 33 block-size: 100%; 34 } 35 36 /* Note: flex items are in visual order as "CMYK": cyan, magenta, yellow, black. */ 37 header, nav, article, footer { 38 inline-size: 25px; 39 } 40 header { 41 background: cyan; 42 block-size: 100px; 43 position: absolute; 44 inset-block-start: 0px; 45 } 46 nav { 47 background: magenta; 48 block-size: 25px; 49 position: absolute; 50 inset-block-start: 0px; 51 inset-inline-start: 25px; 52 } 53 article { 54 background: yellow; 55 block-size: 50px; 56 position: absolute; 57 inset-block-start: 25px; 58 inset-inline-start: 50px; 59 } 60 footer { 61 background: black; 62 block-size: 75px; 63 position: absolute; 64 inset-block-start: 25px; 65 inset-inline-start: 75px; 66 } 67 </style> 68 69 <body> 70 <!-- Test a container with margin-block-start. --> 71 <div class="multicol"> 72 <div class="flexContainer" style="margin-block-start: 25px"> 73 <header></header><nav></nav><article></article><footer></footer> 74 </div> 75 </div> 76 77 <!-- Test a container not at the top of the column/page. --> 78 <div class="multicol"> 79 <div style="block-size: 25px"></div> 80 <div class="flexContainer"> 81 <header></header><nav></nav><article></article><footer></footer> 82 </div> 83 </div> 84 85 <!-- Test a container with border, padding, and column-gap. --> 86 <div class="multicol"> 87 <div class="flexContainer border-padding"> 88 <header style="inline-size: 22px"></header> 89 <nav style="inline-size: 22px; inset-inline-start: 26px"></nav> 90 <article style="inline-size: 22px; inset-block-start: 25px; inset-inline-start: 52px;"></article> 91 <footer style="inline-size: 22px; inset-block-start: 25px; inset-inline-start: 78px;"></footer> 92 </div> 93 </div> 94 </body> 95 </html>