blob: 070e0c1d00d9f941493894dbc07d7e0ec8da5607 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: Avoid nested floats in previous siblings</title>
<link rel="author" title="WebKit" href="http://www.webkit.org/">
<style type="text/css">
#container
{
background-color:red;
overflow:hidden;
width: 400px;
}
#absolute
{
position: absolute;
width: 400px;
}
#float-left
{
float: right;
height: 100px;
width: 20px;
background-color: green;
}
#div1
{
/*'overflow: hidden' forces the div to avoid floats*/
overflow: hidden;
height: 100px;
width: 380px;
background-color: green;
}
</style>
</head>
<body>
<p>There should be no red.</p>
<div id="container">
<div id="absolute">
<div id="float-left"></div>
</div>
<div id="div1"></div>
</div>
</body>
</html>