multi-line-row-flex-fragmentation-067-ref.html (797B)
1 <!DOCTYPE html> 2 <title> 3 Multi-line row flex fragmentation: row gaps should be truncated by 4 fragmentainer breaks. Test with forced breaks. 5 </title> 6 <style> 7 .multicol { 8 columns: 2; 9 column-fill: auto; 10 width: 300px; 11 height: 100px; 12 margin: 20px; 13 background: yellow; 14 } 15 .flex { 16 display: flex; 17 flex-wrap: wrap; 18 background: gray; 19 } 20 .flex > div { 21 contain: size; 22 width: 100%; 23 height: 50px; 24 background: cyan; 25 break-before: always; 26 } 27 </style> 28 <p>Flex row gaps <strong>should</strong> be truncated when a row breaks.</p> 29 <div class="multicol"> 30 <div class="flex"> 31 <div></div> 32 <div style="margin-top:50px; break-after:avoid;"></div> 33 <div style="margin-top:50px;"></div> 34 <div style="margin-top:50px;"></div> 35 </div> 36 </div>