multi-line-row-flex-fragmentation-090.html (1480B)
1 <!DOCTYPE html> 2 <title> 3 Suppress row flexbox gaps: row gaps should be suppressed if it's split across 4 fragmentainer breaks or is the last content before a break. Tests row gap 5 is smaller than unused fragmentainer space. 6 </title> 7 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/11520"> 8 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 9 <style> 10 .multicol { 11 position: relative; 12 columns: 3; 13 column-fill: auto; 14 width: 100px; 15 height: 100px; 16 column-gap: 0px; 17 background: green; 18 } 19 .flex { 20 display: flex; 21 flex-wrap: wrap; 22 background: red; 23 } 24 .flex>div { 25 width: 100%; 26 height: 50px; 27 background: green; 28 } 29 .abspos { 30 position: absolute; 31 background: green; 32 width: 33.33px; 33 } 34 </style> 35 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 36 <div class="multicol"> 37 <div class="flex" style="row-gap:10px;"> 38 <div></div> 39 <div style="break-inside:avoid;"></div> 40 <div style="break-before:column; "></div> 41 <div style="height: 30px;"></div> 42 </div> 43 <!-- background of flex left in 1st fragment --> 44 <div class="abspos" style="left: 0px; top: 50px; height: 50px;"></div> 45 <!-- valid gap of flex left in 2nd fragment --> 46 <div class="abspos" style="left: 33.33px; top: 50px; height: 50px;"></div> 47 <!-- valid gap of flex in 3rd fragment --> 48 <div class="abspos" style="left: 66.66px; top: 50px; height: 10px;"></div> 49 </div>