blob: dea9a8de8367425a9f9b532b443a1df5cfee6d92 [file] [log] [blame]
<!DOCTYPE html>
<style>
.bfc {
overflow:hidden;
border:solid;
margin-top:1em;
}
.float {
background-color: aqua;
height: 30px;
display:inline-block;
}
.under {
height: 50px;
background-color: orange;
}
.clear {
margin-top:20px;
height: 50px;
background-color: orange;
}
section {
float: left;
width: 25%;
margin: 0 5px;
padding: 5px;
background: #ddd;
}
</style>
<section>
crbug.com/434048 : The orange boxes should sit right under the float.
<div class="bfc">
<div class="float">float</div>
<div class="under">clear</div>
</div>
<div class="bfc">
<div class="float">float</div>
<div class="under">clear</div>
</div>
<div class="bfc">
<div class="float">float</div>
<div class="under">clear</div>
</div>
</section>
<section>
crbug.com/434048 : There should be 20px between the orange box and the float.
<div class="bfc">
<div class="float">float</div>
<div class="clear">clear</div>
</div>
<div class="bfc">
<div class="float">float</div>
<div class="clear">clear</div>
</div>
<div class="bfc">
<div class="float">float</div>
<div class="clear">clear</div>
</div>
</section>
<section>
crbug.com/434048 : There should be 20px between the orange box and the float.
<div class="bfc">
<div class="float">float</div>
<div class="clear">clear</div>
</div>
<div class="bfc">
<div class="float">float</div>
<div class="clear">clear</div>
</div>
<div class="bfc">
<div class="float">float</div>
<div class="clear">clear</div>
</div>
</section>