floats-placement-005.html (801B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1378106"> 3 <link rel="match" href="floats-placement-005-ref.html"> 4 <style> 5 .float-left { 6 float: left; 7 clear: left; 8 width: 50px; 9 height: 50px; 10 background: green; 11 } 12 .float-right { 13 float: right; 14 clear: right; 15 width: 50px; 16 height: 50px; 17 background: green; 18 } 19 span { 20 display: inline-block; 21 width: 50px; 22 height: 40px; 23 background: cyan; 24 } 25 </style> 26 <div style="width: 150px; display: flow-root;"> 27 <div class="float-left"></div> 28 <div style="height: 40px;"></div> 29 <div class="float-right"></div> 30 <div class="float-right"></div> 31 <div class="float-left"></div> 32 <div class="float-right"></div> 33 <div style="margin-top: 10px; line-height: 0;"><span></span><span></span></div> 34 </div>