blob: 7b2070b5026577cee44b9b278b0a9d32dbe93336 [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}
span { display: inline; vertical-align: top; width: 40px; background: black; font: 20px Ahem; margin: 0px;}
div { background: black; }
</style>
</head>
<body>
<!--An inline span should avoid a float even when its top and bottom does not overlap with the top of the span.
In this test the float starts and ends inside the span's first linebox.-->
<p>There should be two black boxes below.</p>
<div style="position: absolute; width: 40px; height: 40px; background: black;"></div>
<div style="float: left; width: 40px; height: 15px; background: white;"></div>
<div style="float: left; clear:left; width: 100px; height: 35px; background: white;"></div>
<span>aaa</span>
</body></html>