c414-flt-fit-006

Replaced Float Not Fitting Beside Opposite 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: Replaced Float Not Fitting Beside Opposite 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    img { background: red; color: yellow; }
12    .control { padding: 1em; }
13    .control img { width: 10em; height: 1em; display: block; }
14    .control img.right { margin-left: 5em; }
15    .test { width: 15em; margin: 1em; }
16    .test div { margin: 0; padding: 0; background: red; }
17    .test img { width: 10em; height: 1em; }
18    .test img.left { float: left; }
19    .test img.right { float: right;}
20   </style>
21   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats">
22  </head>
23  <body>
24   <p>The two patterns below should be identical, with no red present.</p>
25   <div class="control">
26    <img src="support/square-teal.png" alt="FAIL: You need image support for this test." class="left">
27    <img src="support/square-purple.png" alt="FAIL: You need image support for this test." class="right">
28   </div>
29   <div class="test">
30    <div>
31     <img src="support/square-teal.png" alt="FAIL: You need image support for this test." class="left"> 
32     <img src="support/square-purple.png" alt="FAIL: You need image support for this test." class="right">
33    </div>
34   </div>
35  </body>
36 </html>