line-height-largest-001

Line-height with multiple font sizes

WeasyPrint

This browser

Flags
may
Assertion
The 'line-height' value may use the largest font size when there is more than one font size.

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-height with multiple font sizes</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-line-height">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading">
 8         <meta name="flags" content="may">
 9         <meta name="assert" content="The 'line-height' value may use the largest font size when there is more than one font size.">
10         <style type="text/css">
11             div
12             {
13                 background-color: blue;
14             }
15             #span1
16             {
17                 font-size: 0.5in;
18             }
19             #span2
20             {
21                 font-size: 1in;
22             }
23         </style>
24     </head>
25     <body>
26         <p>Test passes if the "Filler Text" below is completely contained within the blue box.</p>
27         <div>
28             <span id="span1">Filler</span>
29             <span id="span2">Text</span>
30         </div>
31     </body>
32 </html>