inline-formatting-context-014

Line boxes span the container

WeasyPrint

This browser

Flags
ahem
Assertion
Line boxes span the entire width of a container unless constrained by 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: Line boxes span the container</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-formatting">
 7         <meta name="flags" content="ahem">
 8         <meta name="assert" content="Line boxes span the entire width of a container unless constrained by floats.">
 9         <style type="text/css">
10             div
11             {
12                 font: 20px/1em Ahem;
13             }
14             span
15             {
16                 background: red;
17                 border: solid green;
18                 color: green;
19             }
20         </style>
21     </head>
22     <body>
23         <p>Test passes if there is no red visible on the page.</p>
24         <div>
25             <span>XXXXX</span>
26         </div>
27     </body>
28 </html>