font-size-112

Font-size set to 'inherit'

WeasyPrint

This browser

Flags
ahem
Assertion
The 'font-size' property sets a value of 'inherit' and inherits its value from its parent.

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-size set to 'inherit'</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-size">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-size-props">
 8         <meta name="flags" content="ahem">
 9         <meta name="assert" content="The 'font-size' property sets a value of 'inherit' and inherits its value from its parent.">
10         <style type="text/css">
11             div
12             {
13                 font-family: Ahem;
14                 font-size: 3in;
15             }
16             span
17             {
18                 font-size: 0;
19             }
20             div span
21             {
22                 font-size: inherit;
23             }
24         </style>
25     </head>
26     <body>
27         <p>Test passes if there is a box below.</p>
28         <div>
29             <span>X</span>
30         </div>
31     </body>
32 </html>