inline-formatting-context-013

Wrapping inline boxes and vertical spacing

WeasyPrint

This browser

Flags
ahem
Assertion
Line boxes are stacked with no vertical separation and they never overlap.

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: Wrapping inline boxes and vertical spacing</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 are stacked with no vertical separation and they never overlap.">
 9         <style type="text/css">
10             div
11             {
12                 background: red;
13                 font: 20px/1em Ahem;
14                 height: 5em;
15                 width: 5em;
16             }
17             .color1
18             {
19                 color: green;
20             }
21             .color2
22             {
23                 color: blue;
24             }
25         </style>
26     </head>
27     <body>
28         <p>Test passes if there is no vertical space between the green and blue boxes.</p>
29         <div>
30             <span class="color1">XXXXX</span>
31             <span class="color2">XXXXX</span>
32             <span class="color1">XXXXX</span>
33             <span class="color2">XXXXX</span>
34             <span class="color1">XXXXX</span>
35         </div>
36     </body>
37 </html>