css3-modsel-52.xml (1292B)
1 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <head> 3 <title>NEGATED attribute space-separated value selector</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.stub p { color : red } 7 div.stub > a|*, div.stub > b|* { color : red ; display : block ; margin-bottom : 1em } 8 div.stub *|*:not([test~="foo"]) { color : lime } 9 div.stub *|p:not([class~="foo"]) { color : lime } 10 div.stub b|*[test~="foo2"] { color : lime } 11 ]]></style> 12 <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> 13 <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> 14 <meta name="flags" content=" namespace" /> 15 </head> 16 <body> 17 <div class="stub"> 18 <q xmlns="http://www.example.org/a" test="bar foo tut"> 19 <r test="tut foofoo bar">This text should be</r> 20 <r>in green characters</r> 21 </q> 22 <s xmlns="http://www.example.org/a" test="bar tut">This text should be in green characters</s> 23 <t xmlns="http://www.example.org/a">This text should be in green characters</t> 24 <p class="tit foo1 tut">This text should be in green characters</p> 25 <u xmlns="http://www.example.org/b" test="tit foo2 tut">This text should be in green characters</u> 26 </div> 27 </body> 28 </html>