font-family-rule-001

Font-family, fallback mechanism

WeasyPrint

This browser

Assertion
Unknown or unavailable fonts fallback to the default font family. The default font family varies and depends on user agent.

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-family, fallback mechanism</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-family-prop">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="Unknown or unavailable fonts fallback to the default font family. The default font family varies and depends on user agent.">
 9         <style type="text/css">
10             div
11             {
12                 font-family: 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 there is a letter "X" below.</p>
19         <div>X</div>
20     </body>
21 </html>