c5525-fltblck-000

float

WeasyPrint

This browser

Flags
ahem, image

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3  <head>
 4   <title>CSS Test: float</title>
 5   <meta name="flags" content="ahem image">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#float">
 7   <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
 8   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 9   <style type="text/css">
10    div { font: 15px/1 Ahem; background: white url(support/css1test5525cf-0.png) top right no-repeat; height: 10em; }
11    p { margin: 0; padding: 0; }
12    .float { float: right; width: 20em; color: green; border: 3px solid green; padding: 5px; margin: 10px; }
13    .flow { background: white url(support/css1test5525cf-1.png) top right no-repeat; color: white; text-align: right; }
14   </style>
15   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats">
16   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" title="10.6.3 Block-level non-replaced elements in normal flow when 'overflow' computes to 'visible'">
17  </head>
18  <body>
19   <p>There should be a green box to the right. ➘</p>
20   <div>
21    <p class="float">
22     x x xxxx xx xxxx x x
23     x xx xx xxxx xx xx x
24     x xxx xx xx xx xxx x
25     x xx xx xxxx xx xx x
26     x x xxxx xx xxxx x x
27    </p>
28    <p class="flow">
29     x<br>x<br>x
30    </p>
31   </div>
32  </body>
33 </html>