Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/CSS2/floats/floats-placement-005.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="match" href="floats-placement-005-ref.html">
<style>
.float-left {
float: left;
clear: left;
width: 50px;
height: 50px;
background: green;
}
.float-right {
float: right;
clear: right;
width: 50px;
height: 50px;
background: green;
}
span {
display: inline-block;
width: 50px;
height: 40px;
background: cyan;
}
</style>
<div style="width: 150px; display: flow-root;">
<div class="float-left"></div>
<div style="height: 40px;"></div>
<div class="float-right"></div>
<div class="float-right"></div>
<div class="float-left"></div>
<div class="float-right"></div>
<div style="margin-top: 10px; line-height: 0;"><span></span><span></span></div>
</div>