line-height-025

Line-height using picas with a minimum plus one value, 1pc

WeasyPrint

This browser

Flags
ahem
Assertion
The 'line-height' property sets a minimum plus one length value in picas.

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 using picas with a minimum plus one value, 1pc</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="ahem">
 9         <meta name="assert" content="The 'line-height' property sets a minimum plus one length value in picas.">
10         <style type="text/css">
11             div
12             {
13                 font: 20px/1 Ahem;
14                 position: relative;
15                 width: 1em;
16             }
17             #div2, #div3
18             {
19                 background: black;
20             }
21             #div2
22             {
23                 line-height: 1pc;
24             }
25             #div3
26             {
27                 left: 1.1em;
28                 position: absolute;
29                 top: -2px;
30             }
31             #div4
32             {
33                 height: 20px;
34             }
35             #div5
36             {
37                 height: 1pc;
38             }
39         </style>
40     </head>
41     <body>
42         <p>Test passes if the two boxes below are the same height.</p>
43         <div id="div1">
44             <div id="div2">X X</div>
45             <div id="div3">
46                 <div id="div4"></div>
47                 <div id="div5"></div>
48             </div>
49         </div>
50     </body>
51 </html>