css3-modsel-132.xml (1546B)
1 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <head> 3 <title>NEGATED Attribute space-separated value 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 @namespace html url(http://www.w3.org/1999/xhtml); 7 *|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } 8 *|p.deu, *|q { background-color : red } 9 div.stub html|*:not([*|class~="deux"]), 10 div.stub *|*:not(html|*):not([*|foo~="deux"]) { background-color : lime } 11 ]]></style> 12 <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> 13 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 14 <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> 15 <meta name="flags" content=" namespace" /> 16 </head> 17 <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> 18 <div class="stub"> 19 <p class="un deux trois">This paragraph should be unstyled</p> 20 <p class="un deu trois">This paragraph should have a green background.</p> 21 <q xmlns="http://www.example.org/a" a:bar="un deux trois">This paragraph should have a green background.</q> 22 <q xmlns="http://www.example.org/a" a:foo="un second deuxieme trois">This paragraph should have a green background.</q> 23 <r xmlns="http://www.example.org/a" a:foo="un deux trois">This paragraph should be unstyled.</r> 24 <s xmlns="http://www.example.org/b" b:foo="un deux trois">This paragraph should be unstyled.</s> 25 </div> 26 </body> 27 </html>