inherit-003

Inherit on the root element

WeasyPrint

This browser

Assertion
If the 'inherit' value is set on the root element, the property is assigned its initial value.

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: Inherit on the root element</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="If the 'inherit' value is set on the root element, the property is assigned its initial value.">
 9         <style type="text/css">
10             html
11             {
12                 font-size: 1in;
13                 font-size: inherit;
14                 font-style: italic;
15                 font-style: inherit;
16                 font-variant: small-caps;
17                 font-variant: inherit;
18                 font-weight: bold;
19                 font-weight: inherit;
20             }
21             span
22             {
23                 font-size: medium;
24                 font-style: normal;
25                 font-variant: normal;
26                 font-weight: normal;
27             }
28         </style>
29     </head>
30     <body>
31         <p>Test passes if the two lines of "Filler Text" below are identical.</p>
32         <div>
33             Filler Text
34             <br>
35             <span>Filler Text</span>
36         </div>
37     </body>
38 </html>