font-family-008

font-family - unquoted font-family names with parentheses or curly braces

WeasyPrint

This browser

Flags
ahem, invalid
Assertion
Unquoted font-family names must not contain unescaped parentheses or unescaped curly braces

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3 
 4  <head>
 5 
 6   <title>CSS Test: font-family - unquoted font-family names with parentheses or curly braces</title>
 7 
 8   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
 9   <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-family-prop">
10   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#rule-sets">
11   <meta content="ahem invalid" name="flags">
12   <meta content="Unquoted font-family names must not contain unescaped parentheses or unescaped curly braces" name="assert">
13 
14   <style type="text/css">
15   p#first-test {font-family: Ahem, foo(bar), sans-serif;}
16 
17   p#second-test {font-family: Ahem, foo(bar)foo, sans-serif;}
18 
19   p#third-test {font-family: Ahem, foo{bar}, sans-serif;}
20 
21   p#fourth-test {font-family: Ahem, foo{bar}foo, sans-serif;}
22   </style>
23 
24  </head>
25 
26  <body>
27 
28   <p>Test passes if there is <strong>no black stripe</strong>.</p>
29 
30   <p id="first-test">First test Passed</p>
31 
32   <p id="second-test">Second test Passed</p>
33 
34   <p id="third-test">Third test Passed</p>
35 
36   <p id="fourth-test">Fourth test Passed</p>
37 
38  </body>
39 </html>