font-matching-rule-009

Font Matching Algorithm, font-weight out of range

WeasyPrint

This browser

Flags
invalid
Assertion
Invalid font weight values are set to the default weight of 400.

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 Matching Algorithm, font-weight out of range</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#algorithm">
 7         <meta name="flags" content="invalid">
 8         <meta name="assert" content="Invalid font weight values are set to the default weight of 400.">
 9         <style type="text/css">
10             div
11             {
12                 font-family: serif;
13             }
14             #span1
15             {
16                 font-weight: 400;
17             }
18             #span2
19             {
20                 font-weight: 9000;
21             }
22         </style>
23     </head>
24     <body>
25         <p>Test passes if the lines of "Filler Text" below match.</p>
26         <div id="span1">Filler Text</div>
27         <div id="span2">Filler Text</div>
28     </body>
29 </html>