floats-placement-vertical-001a

Test for float placement rules

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
A floating box must be placed as high as possible.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html><head>
 3 <link rel="reference" href="floats-placement-vertical-001-ref.xht">
 4 <title>CSS Test: Test for float placement rules</title>
 5 <link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
 6 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#float-position">
 8 <meta name="assert" content="A floating box must be placed as high as possible. ">
 9 <meta name="flags" content="">
10 <style type="text/css">
11 .left { float:left; }
12 .right { float:right; }
13 .left, .right { width:50px; height:50px; background:yellow; }
14 p { overflow:auto; }
15 </style>
16 </head>
17 <body style="width:400px;">
18 <p>Hello<span class="left"></span>Kitty
19 </p><p>Hello<span class="right"></span>Kitty
20 </p><p dir="rtl">Hello<span class="left"></span>Kitty
21 </p><p dir="rtl">Hello<span class="right"></span>Kitty
22 </p><p style="text-align:right;">Hello<span class="left"></span>Kitty
23 </p><p style="text-align:right;">Hello<span class="right"></span>Kitty
24 
25 
26 </p></body></html>