font-weight-rule-005

Font-weight set to 'bolder' increasing the value above '900'

WeasyPrint

This browser

Assertion
The 'font-weight' property set to 'bolder' does not increase the value of font weight when the parent values is already set at 900.

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-weight set to 'bolder' increasing the value above '900'</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#font-boldness">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="The 'font-weight' property set to 'bolder' does not increase the value of font weight when the parent values is already set at 900.">
 9         <style type="text/css">
10             #parent
11             {
12                 font-weight: 900;
13             }
14             #reference
15             {
16                 font-weight: 900;
17             }
18             div div
19             {
20                 font-weight: bolder;
21             }
22         </style>
23     </head>
24     <body>
25         <p>Test passes if the lines of "Filler Text" below match.</p>
26         <div id="reference">Filler Text</div>
27         <div id="parent">
28             <div>Filler Text</div>
29         </div>
30     </body>
31 </html>