float-004.html (1491B)
1 <!DOCTYPE html> 2 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> 3 <link rel="help" href="https://www.w3.org/TR/css-break-3/#unforced-breaks"> 4 <link rel="help" href="https://www.w3.org/TR/CSS22/visuren.html#floats"> 5 <link rel="help" href="https://www.w3.org/TR/CSS22/visuren.html#flow-control"> 6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 7 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 8 <div style="width:100px; height:100px; background:red;"> 9 <div style="columns:4; column-fill:auto; column-gap:0; height:150px;"> 10 <div style="height:100px; background:green;"></div> 11 <div style="float:right; break-inside:avoid; width:60%; height:400px;"> 12 <div style="height:100px; background:green;"></div> 13 <div style="height:50px;"></div> 14 <div style="height:100px; background:green;"></div> 15 <div style="height:50px;"></div> 16 <div style="height:60px; background:green;"></div> 17 </div> 18 <div style="clear:left; float:left; width:40%; height:0;"> 19 <div style="height:100px; background:green;"></div> 20 <div style="height:50px;"></div> 21 <div style="height:100px; background:green;"></div> 22 <div style="height:50px;"></div> 23 <div style="height:60px; background:green;"></div> 24 </div> 25 <div style="clear:both; display:flow-root; height:0;"> 26 <div style="height:40px; margin-top:-40px; background:green;"></div> 27 </div> 28 </div> 29 </div>