font-family-invalid-characters-006

Invalid single quotes and pair matching

WeasyPrint

This browser

Flags
ahem, invalid
Assertion
Invalid characters in font family names.

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: Invalid single quotes and pair matching</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="author" title="Arron Eicholz" href="http://www.microsoft.com/">
 7         <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
 8         <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-family-prop">
 9         <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#parsing-errors">
10         <meta name="flags" content="ahem invalid">
11         <meta name="assert" content="Invalid characters in font family names.">
12         <style type="text/css">
13             
14             #div1
15             {
16                 background: red;
17                 font-family: test'foo, Ahem;
18                 color: red;
19                 background: transparent;
20             }
21             #div2
22             {
23                 font-family: test'foo', Ahem;
24             }
25             
26         </style>
27     </head>
28     <body>
29         <p>Test passes if there are only numbers (1-2) below and no red visible on the page.</p>
30         <div id="div1">1</div>
31         <div id="div2">2</div>
32     </body>
33 </html>