css3-modsel-95.xml (1123B)
1 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <head> 3 <title>Universal selector with universal namespace</title> 4 <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); 5 @namespace b url(http://www.example.org/b); 6 div.test * { background-color : red ; display : block ; margin-bottom : 1em } 7 div.test *|* { background-color : lime }]]></style> 8 <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> 9 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 10 <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> 11 <meta name="flags" content=" namespace" /> 12 </head> 13 <body> 14 <div class="test"> 15 <p>This line should have a green background</p> 16 <p xmlns="http://www.example.org/b">This line should have a green background</p> 17 <q xmlns="http://www.example.org/b">This line should have a green background</q> 18 <p xmlns="http://www.example.org/a">This line should have a green background</p> 19 <foo xmlns="http://www.example.org/b">This line should have a green background</foo> 20 </div> 21 </body> 22 </html>