font-family-name-020

when quoted font family not found, should not use font family list of parent element

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
font
Assertion
When a quoted font family name is not found font fallback occurs, the rule is not treated as invalid, the font-family setting of the enclosed div should not be used.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3      <head>
 4         <link rel="reference" href="font-family-name-mixcase-ref.xht">
 5         <title>CSS Test: when quoted font family not found, should not use font family list of parent element</title>
 6         <link rel="author" title="Mozilla" href="http://www.mozilla.com/">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#propdef-font-family">
 8         <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-family-prop">
 9         <meta name="flags" content="font">
10         <meta name="assert" content="When a quoted font family name is not found font fallback occurs, the rule is not treated as invalid, the font-family setting of the enclosed div should not be used.">
11         <style type="text/css">
12             body { font-size: 36px; }
13             span#verify { font-family: CSSTest Verify; }
14             div#test { font-family: CSSTest Fallback; }
15             p {
16                 font-family: "CSSTest Unknown";
17             }
18         </style>
19     </head>
20     <body>
21         <div><a href="http://www.w3.org/Style/CSS/Test/Fonts/">Test fonts</a> must be installed for this test: <span id="verify">FAIL</span></div>
22         <div id="test"><p>PaSs</p></div>
23     </body>
24 </html>