blob: 6bab4c1182ea87e43a8d7b92635c5cfc95bef0ba [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">
.container { font: 12px Ahem; color: red; width: 100px; height: 100px; background: lime; -webkit-line-box-contain: inline; line-box-contain: inline; position: relative; }
div { background: white; }
.reference { position: absolute; width: 100px; height: 100px; background: black; }
</style>
</head>
<body>
<!-- Ensure lineboxes respect line-box-contain when avoiding floats. -->
There should be no red below.
<div class="container">
<div style="float: left; width: 10px; height: 10px; background: white"></div>
<div style="float: left; clear:left; width: 40px; height: 50px; background: white"></div>
<!-- This should cover the text below as the linebox will offset to avoid the first float but not the second. -->
<div class="reference"></div>
XXXXXXX XXXX XXXX XXXX
</div>
</body></html>