font-family-valid-characters-002

Valid numbers in font-family values

WeasyPrint

This browser

Flags
ahem
Assertion
Font family names must be identifiers.

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: Valid numbers in font-family values</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         <meta name="flags" content="ahem">
10         <meta name="assert" content="Font family names must be identifiers.">
11         <style type="text/css">
12             div
13             {
14                 font-family: Ahem;
15             }
16             #div1
17             {
18                 font-family: 5testfoo, serif;
19             }
20             #div2
21             {
22                 font-family: testfoo 5-0, serif;
23             }
24             #div3
25             {
26                 font-family: test 5foo, serif;
27             }
28             #div4
29             {
30                 font-family: testfoo -5, serif;
31             }
32             #div5
33             {
34                 font-family: testfoo -5bar, serif;
35             }
36             #div6
37             {
38                 font-family: testfoo 5_0, serif;
39             }
40             #div7
41             {
42                 font-family: testfoo _5, Ahem;
43             }
44             #div8
45             {
46                 font-family: testfoo _5bar, Ahem;
47             }
48             #div9
49             {
50                 font-family: -5testfoo, serif;
51             }
52             #div10
53             {
54                 font-family: _5testfoo, Ahem;
55             }
56         </style>
57     </head>
58     <body>
59         <p>Test passes if the word "Fail" is not visible below.</p>
60         <div id="div1">Fail</div>
61         <div id="div2">Fail</div>
62         <div id="div3">Fail</div>
63         <div id="div4">Fail</div>
64         <div id="div5">Fail</div>
65         <div id="div6">Fail</div>
66         <div id="div7">Fail</div>
67         <div id="div8">Fail</div>
68         <div id="div9">Fail</div>
69         <div id="div10">Fail</div>
70     </body>
71 </html>