|
1 <html xmlns="http://www.w3.org/1999/xhtml"> |
|
2 <head> |
|
3 <link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/> |
|
4 <link rel="author" title="Opera Software ASA" href="http://opera.com/"/> |
|
5 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/> |
|
6 <link rel="help" href="http://www.w3.org/TR/css3-namespace/#syntax"/> |
|
7 <link rel="match" href="reftest/ref-lime-5.xml"/> |
|
8 <meta name="flags" content="invalid"/> |
|
9 <title>CSS Namespaces Test Suite: @namespace error handling</title> |
|
10 <style> |
|
11 t, t2, t3, t4, t5 { background:red } |
|
12 </style> |
|
13 <style> |
|
14 @namespace "test" {} |
|
15 t { background:lime } |
|
16 </style> |
|
17 <style id="a">@namespace x "test</style> |
|
18 <script> |
|
19 document.getElementById("a").sheet.insertRule("x|t2 {background:lime }", 1) |
|
20 </script> |
|
21 <style> |
|
22 @namespace "fail; |
|
23 ; t3 { background:lime } |
|
24 </style> |
|
25 <style> |
|
26 @namespace url('fail); |
|
27 t4 { background:red !important; } |
|
28 ); |
|
29 t4 { background:lime } |
|
30 </style> |
|
31 <style> |
|
32 @namespace url(test); |
|
33 @namespace url('test' x); |
|
34 t5 { background:lime } |
|
35 </style> |
|
36 </head> |
|
37 <body> |
|
38 <p><t>This sentence should have a green background.</t></p> |
|
39 <p><t2 xmlns="test">This sentence should have a green background.</t2></p> |
|
40 <p><t3>This sentence should have a green background.</t3></p> |
|
41 <p><t4>This sentence should have a green background.</t4></p> |
|
42 <p><t5 xmlns="test">This sentence should have a green background.</t5></p> |
|
43 </body> |
|
44 </html> |