<!DOCTYPE html><!-- webkit-test-runner [ LayoutFormattingContextEnabled=true InlineFormattingContextIntegrationEnabled=false ] --> | |
<style> | |
.float_box { | |
float: left; | |
background-color: green; | |
width: 100px; | |
height: 100px; | |
} | |
.float_avoider { | |
overflow: hidden; | |
width: 100px; | |
height: 100px; | |
background-color: blue; | |
color: blue; | |
} | |
</style> | |
<div class=float_box></div> | |
<div class=float_avoider>text content</div> |