font-019

Font shorthand set using the values font-variant, font-size, line-height and font-family

WeasyPrint

This browser

Assertion
The 'font' shorthand property accepts and sets font-variant, font-size, line-height and font-family.

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: Font shorthand set using the values font-variant, font-size, line-height and font-family</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#propdef-font">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-shorthand">
 8         <meta name="flags" content="">
 9         <meta name="assert" content="The 'font' shorthand property accepts and sets font-variant, font-size, line-height and font-family.">
10         <style type="text/css">
11             #wrapper
12             {
13                 position: relative;
14             }
15             #test
16             {
17                 font: small-caps 1in/1em serif;
18             }
19             #reference
20             {
21                 color: orange;
22                 font-family: serif;
23                 font-size: 1in;
24                 height: 1in;
25                 left: 0;
26                 line-height: 1em;
27                 position: absolute;
28                 top: 0;
29                 width: 1in;
30             }
31         </style>
32     </head>
33     <body>
34         <p>Test passes if the first black "x" is taller and wider than the first orange "x" and shorter than the second orange "X". The second black "X" needs to be the same height as the second orange "X".</p>
35         <div id="wrapper">
36             <div id="test">xX</div>
37             <div id="reference">xX</div>
38         </div>
39     </body>
40 </html>