css3-modsel-120.xml (1165B)
1 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <head> 3 <title>NEGATED type element selector without declared namespace</title> 4 <style type="text/css"><![CDATA[@namespace html url(http://www.w3.org/1999/xhtml); 5 @namespace a url(http://www.example.org/a); 6 @namespace b url(http://www.example.org/b); 7 div.stub > * { display : block ; margin-bottom : 1em ; 8 background-color : red } 9 div.stub > *:not(|p) { background-color : lime } 10 div.stub > *|l > *:not(|p) { background-color : red }]]></style> 11 <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> 12 <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> 13 <meta name="flags" content=" namespace" /> 14 </head> 15 <body> 16 <div class="stub"> 17 <p>This paragraph should have a green background</p> 18 <p xmlns="http://www.example.org/b">This paragraph should have a green background</p> 19 <l xmlns="http://www.example.org/b"> 20 <p xmlns="">This paragraph should have a 21 green background</p> 22 </l> 23 <p xmlns="http://www.example.org/a">This paragraph should have a green background</p> 24 </div> 25 </body> 26 </html>