font-systemfont-rule-003

System Font, substitute for similar system font when font unknown

WeasyPrint

This browser

Assertion
It the specified system font is not available, then substitute it for a similar one, if there is no similar one, then substitute with the default one.

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: System Font, substitute for similar system font when font unknown</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-shorthand">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="It the specified system font is not available, then substitute it for a similar one, if there is no similar one, then substitute with the default one.">
 9         <style type="text/css">
10             #test
11             {
12                 font: UnknownFont;
13             }
14         </style>
15     </head>
16     <body>
17         <p>PREREQUISITE: Operating system cannot have a font named "UnknownFont" installed. If it is installed remove it to verify this test.</p>
18         <p>Test passes if the lines of "Filler Text" below match.</p>
19         <div>Filler Text</div>
20         <div id="test">Filler Text</div>
21     </body>
22 </html>