Do not create a shape object outside of the layout context
[WebKit-https.git] / LayoutTests / fast / block / float / independent-align-positioning.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5   <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6   <title>Clearing bug</title>
7   <style type="text/css">
8     div {padding: 20px;}
9     #number1 {float:right;background-color:#c66;}
10     #number2 {clear:right;float:right;background-color:#9c6;}
11     #number3 {float:left;background-color:#69f;}
12   </style>
13 </head>
14 <body>
15   <div id="number1">DIV NUMBER 1: float:right;</div>
16   <div id="number2">DIV NUMBER 2: clear:right; float:right;</div>
17   <div id="number3">DIV NUMBER 3: float:left;</div>
18   <p>The first element is floated to the right. The second element clears the right float and also floats right. The third element is floated to the left, but is forced below the bottom of the first element. Yet, somehow this paragraph comes at the end of the markup, and manages to rise to the top of the page. This behavior is present in Firefox, Safari and Opera. <a href="http://level39.com/clearing-bug/layout.html"><strong>Click here for a real world example of this bug.</strong></a></p>
19 </body>
20 </html>