font-family-name-008

single quoted font family name with extra spaces should not match

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
font
Assertion
The 'font-family' property set to and installed font renders the appropriate font. Family name with spaces in single quotes should not match, spaces are not reduced.

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-ref.xht">
 5         <title>CSS Test: single quoted font family name with extra spaces should not match</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="The 'font-family' property set to and installed font renders the appropriate font. Family name with spaces in single quotes should not match, spaces are not reduced.">
11         <style type="text/css">
12             body { font-size: 36px; }
13             span#verify { font-family: CSSTest Verify; }
14             p {
15                 font-family: 'CSSTest   FamilyName', CSSTest Fallback;
16             }
17         </style>
18     </head>
19     <body>
20         <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>
21         <p>1234</p>
22     </body>
23 </html>