blob: 543e1280d5727153ea9ab728447077f727dfab53 [file] [log] [blame]
<html>
<head>
<style>
body { width: 400px;}
.container { width: 100px; height: 150px; position: relative;}
div { background: white; }
img { background: red; width: 20px; height: 20px; }
.narrowfloat { float: left; width: 10px; height: 25px;}
.widefloat { float: left; clear: left; width: 40px; height: 5px;}
.reference { position: absolute; width: 20px; height: 20px; background: black; }
.first { left: 10px; }
.second { left: 40px; top: 20px; }
</style>
</head>
<body>
<!-- In quirks mode, images have their descent removed so that they squeeze together across line breaks.
Ensure the images find the correct offset for their line when avoiding floats. -->
There should be no red visible below.
<div class="container">
<div class="narrowfloat"></div>
<div class="widefloat"></div>
<!-- This should cover the first image. -->
<div class="reference first"></div>
<!-- This should cover the second image. -->
<div class="reference second"></div>
<img><br><img>
</div>
</body></html>