flexbox-single-column-vertical-lr-6.html (2586B)
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 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 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> 10 <link rel="match" href="flexbox-single-column-vertical-lr-6-ref.html"> 11 <meta name="assert" content="This test verifies fragmentation of a fixed block-size flex item that has overflows in a fixed block-size single-line column flex container."> 12 13 <style> 14 html { 15 writing-mode: vertical-lr; 16 } 17 .multicol { 18 block-size: 50px; 19 inline-size: 190px; 20 column-width: 40px; 21 column-fill: auto; 22 column-gap: 10px; 23 border: 5px solid orange; 24 margin-block-end: 5px; /* Just to separate each sub-testcase visually. */ 25 } 26 .flexContainer { 27 display: flex; 28 flex-wrap: nowrap; 29 flex-direction: column; 30 background: gray; 31 /* border-width is 0 by default; some sub-testcases will increase it. */ 32 border: 0 solid lightgray; 33 /* Block-size is deliberately made shorter than its flex items. */ 34 block-size: 40px; 35 } 36 .border-padding { 37 border-block-width: 10px; 38 padding-block: 5px; 39 } 40 41 article { 42 inline-size: 30px; 43 /* Block-size is deliberately made shorter than its <div> child. */ 44 block-size: 70px; 45 background: cyan; 46 } 47 article > div { 48 inline-size: 20px; 49 block-size: 140px; 50 background: magenta; 51 } 52 </style> 53 54 <body> 55 <!-- Basic one without any margin/border/padding. --> 56 <div class="multicol"> 57 <div class="flexContainer"> 58 <article><div></div></article> 59 </div> 60 </div> 61 62 <!-- Test a container with margin-block-start. --> 63 <div class="multicol"> 64 <div class="flexContainer" style="margin-block-start: 25px"> 65 <article><div></div></article> 66 </div> 67 </div> 68 69 <!-- Test a container not at the top of the column/page. --> 70 <div class="multicol"> 71 <div style="block-size: 25px"></div> 72 <div class="flexContainer"> 73 <article><div></div></article> 74 </div> 75 </div> 76 77 <!-- Test a container with border and padding. --> 78 <div class="multicol"> 79 <div class="flexContainer border-padding"> 80 <article><div></div></article> 81 </div> 82 </div> 83 </body> 84 </html>