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 square brackets 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 #div3
15 {
16 background: red;
17 }
18 #div1
19 {
20 font-family: test]foo, Ahem;
21 }
22 #div2
23 {
24 font-family: test[foo, Ahem;
25 }
26 body
27 {
28 background: red;}]
29 }
30 #div3
31 {
32 background: transparent;
33 }
34 #div3
35 {
36 font-family: test[foo], Ahem;
37 }
38
39 </style>
40 </head>
41 <body>
42 <p>Test passes if there are only numbers (1-3) below and no red visible on the page.</p>
43 <div id="div1">1</div>
44 <div id="div2">2</div>
45 <div id="div3">3</div>
46 </body>
47 </html>