white-space-processing-048

Floats and line opportunity with 'white-space'

WeasyPrint

This browser

Flags
ahem
Assertion
A line breaking opportunity is not introduced with floats.

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: Floats and line opportunity with 'white-space'</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model">
 7         <meta name="flags" content="ahem">
 8         <meta name="assert" content="A line breaking opportunity is not introduced with floats.">
 9         <style type="text/css">
10             #div1
11             {
12                 font-family: Ahem;
13                 white-space: normal;
14                 width: 5em;
15             }
16             div div
17             {
18                 color: blue;
19                 float: right;
20             }
21         </style>
22     </head>
23     <body>
24         <p>Test passes if the blue box is below the black box.</p>
25         <div id="div1">
26             <span>XXXXXX</span>
27             <div>XXX</div>
28         </div>
29     </body>
30 </html>