font-045

font - inherit keyword value

WeasyPrint

This browser

Flags
ahem, invalid
Assertion
The inherit keyword value cannot mix with other subproperty values

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3 
 4  <head>
 5 
 6   <title>CSS Test: font - inherit keyword value</title>
 7 
 8   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
 9   <link rel="help" href="http://www.w3.org/TR/CSS21/changes.html#q142">
10   <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-shorthand">
11   <meta content="ahem invalid" name="flags">
12   <meta content="The inherit keyword value cannot mix with other subproperty values" name="assert">
13 
14   <style type="text/css">
15   div 
16   {
17   background-color: red;
18   color: white;
19   font: 128px/1 Ahem;
20   width: 4em;
21   }
22 
23   span
24   {
25   background-color: white;
26   color: green;
27   font: 32px inherit;
28   }
29   </style>
30 
31  </head>
32 
33  <body>
34 
35   <p>Test passes if there is a large green rectangle and <strong>no red</strong>.</p>
36 
37   <div>
38     <span>XXXX</span>
39   </div>
40 
41  </body>
42 </html>