1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <title>CSS Test: Test for wrapping around floats which are overlapped by the element that must avoid them
</title>
5 <link rel=
"author" title=
"WebKit" href=
"http://webkit.org/">
6 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/visuren.html#floats">
7 <style type=
"text/css">
8 body
{ width: 400px; background: white
}
9 .container { width: 100px; height: 100px;}
10 div
{ background: white
; }
15 <!-- Avoid floats on the first line of a container using the font or line height as a hint. -->
16 <p>There should be no red text visible below.
</p>
17 <div class=
"container">
18 <div style=
"position: absolute; width: 100px; height: 100px; background: black;"></div>
19 <div style=
"float: left; width: 10px; height: 10px; background: white"></div>
20 <div style=
"float: left; clear:left; width: 50px; height: 50px; background: white"></div>
21 <p class=
"text">Some long text.
</p>