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: 150px; background: lime
;}
10 div
{ background: white
; }
11 .text:first-line { font-size: 30px;}
16 <!-- Avoid floats on the first line of a container using the font or line height as a hint. -->
17 <p>There should be no red text visible below.
</p>
18 <div class=
"container">
19 <div style=
"position: absolute; width: 100px; height: 150px; background: black;"></div>
20 <div style=
"float: left; width: 10px; height: 25px; background: white"></div>
21 <div style=
"float: left; clear:left; width: 40px; height: 50px; background: white"></div>
22 <p class=
"text">This long text should stay inside the container.
</p>