font-020

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

WeasyPrint

This browser

Flags
ahem
Assertion
The 'font' shorthand property accepts and sets font-weight, 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-weight, 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="ahem">
 9         <meta name="assert" content="The 'font' shorthand property accepts and sets font-weight, font-size, line-height and font-family.">
10         <style type="text/css">
11             #wrapper
12             {
13                 background: red;
14                 float: left;
15             }
16             #test
17             {
18                 color: green;
19                 font: normal 1in/1em Ahem;
20             }
21             #reference
22             {
23                 background: green;
24                 height: 1in;
25                 width: 1in;
26             }
27         </style>
28     </head>
29     <body>
30         <p>Test passes if there is no red visible on the page.</p>
31         <div id="wrapper">
32             <div id="test">X</div>
33             <div id="reference"></div>
34         </div>
35     </body>
36 </html>