1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <title>CSS: @namespace and default namespaces</title>
4 <style type="text/css">
5 @namespace url(http://www.example.org/);
6 :first-child { color: red; }
7 element { color: red; }
8 [attribute] { color: red; }
11 .class { color: red; }
14 <body style="color: green"> <!-- I needed a way that would not interfere with the @namespace rule at all -->
15 <tests xmlns="http://www.example.com/not-the-default">
16 <first-child> None of this </first-child>
17 <element> text should be </element>
18 <attribute attribute="attribute"> matching the style </attribute>
19 <span id="id" xmlns="http://www.w3.org/1999/xhtml"> rules, and thus </span>
20 <universal> none of it </universal>
21 <span class="class" xmlns="http://www.w3.org/1999/xhtml"> should be red. </span>