1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <title>CSS: @namespace blocks across embedded stylesheets (part 2, negative tests)</title>
4 <style type="text/css">
5 @namespace a url(http://www.example.org/2);
6 @namespace b url(http://www.example.org/1);
7 test3 { color: red; } /* this matches nothing */
9 <style type="text/css">
10 /* namespace declarations are reversed */
11 @namespace a url(http://www.example.org/2);
12 @namespace b url(http://www.example.org/1);
13 a|test2 { color: red; } /* matches nothing either */
15 <style type="text/css">
16 /* set a default namespace declaration */
17 @namespace url(http://www.example.org/1);
18 test1 { color: red; } /* still matches nothing */
20 <style type="text/css">
21 /* set the default to be red */
23 *|body *|* { display: block; }
27 <!-- tests *:3 are checked in 004.xml -->
28 <test2 xmlns="http://www.example.org/1"> This should be green. </test2>
29 <!-- test 2:2 is checked in 004.xml -->
30 <test2 xmlns="http://www.example.org/3"> This should be green. </test2>
31 <!-- test 1:1 is checked in 004.xml -->
32 <test1 xmlns="http://www.example.org/2"> This should be green. </test1>
33 <test1 xmlns="http://www.example.org/3"> This should be green. </test1>