c414-flt-wrap-001

Text Not Fitting Beside Replaced Float

WeasyPrint

This browser

Flags
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: Text Not Fitting Beside Replaced Float</title>
 5   <meta name="flags" content="image">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#floating-elements">
 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    p { color: navy; }
11    .test { width: 15em; margin: 1em; padding: 0; background: white; color: white; }
12    .test img.left { float: left; }
13    .test img.right { float: right; width: 15em; height: 7em; }
14    .test span { font: 6em monospace; }
15   </style>
16   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats">
17  </head>
18  <body>
19   <p>The word "fail" should not appear below, just a green block.</p>
20   <div class="test">
21    <img src="support/1x1-white.png" alt="FAIL: You need image support for this test." class="left">
22    <img src="support/1x1-green.png" alt="FAIL: You need image support for this test." class="right">
23    <span> FAIL </span>
24   </div>
25   <!-- this test actually failed in Mozilla once -->
26  </body>
27 </html>