font-style-004

Font-style set to 'inherit'

WeasyPrint

This browser

Flags
ahem
Assertion
The 'font-style' property set to 'inherit', inherits is value from the parent element's 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: Font-style 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-style">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-styling">
 8         <meta name="flags" content="ahem">
 9         <meta name="assert" content="The 'font-style' property set to 'inherit', inherits is value from the parent element's value.">
10         <style type="text/css">
11             div
12             {
13                 font-style: italic;
14                 font-family: Ahem;
15             }
16             span
17             {
18                 font-style: normal;
19             }
20             div span
21             {
22                 font-style: inherit;
23             }
24         </style>
25     </head>
26     <body>
27         <p>Test passes if there is a box below that appears to be slanted to one side.</p>
28         <div>
29             <span>X</span>
30         </div>
31     </body>
32 </html>