font-family-invalid-characters-005

Invalid 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 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             #div3
26             {
27                 background: red;
28                 font-family: test'foo, Ahem;
29                 color: red;
30                 background: transparent;
31             }
32             #div4
33             {
34                 font-family: test'foo', Ahem;
35             }
36             
37         </style>
38     </head>
39     <body>
40         <p>Test passes if there are only numbers (1-4) below and no red visible on the page.</p>
41         <div id="div1">1</div>
42         <div id="div2">2</div>
43         <div id="div3">3</div>
44         <div id="div4">4</div>
45     </body>
46 </html>