blob: b059831c5e0b71ded96771e3236c9fdfb54082a5 [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: Test for wrapping around floats which are overlapped by the element that must avoid them</title>
<link rel="author" title="WebKit" href="http://webkit.org/">
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats">
<style type="text/css">
body { width: 400px; background: white}
.container { width: 100px; height: 100px;}
div { background: white; }
.text { color:red;}
</style>
</head>
<body>
<!-- Avoid floats on the first line of a container using the font or line height as a hint. -->
<p>There should be no red text visible below.</p>
<div class="container">
<div style="position: absolute; width: 100px; height: 100px; background: black;"></div>
<div style="float: left; width: 10px; height: 10px; background: white"></div>
<div style="float: left; clear:left; width: 50px; height: 50px; background: white"></div>
<p class="text">Some long text.</p>
</div>
</body></html>