css3-modsel-47.xml (1086B)
1 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <head> 3 <title>NEGATED type element selector</title> 4 <style type="text/css"><![CDATA[div.stub span, div.stub address, div.stub *|q, div.stub *|r { background-color: red; } 5 address, *|q, *|r { display: block; margin: 1em; } 6 div.stub *:not(p) { background-color: lime; }]]></style> 7 <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> 8 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 9 <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> 10 <meta name="flags" content=" namespace" /> 11 </head> 12 <body> 13 <div class="stub"> 14 <p> 15 <span>The text in this paragraph should have a green background</span> 16 </p> 17 <address>This address should have a green background</address> 18 <q xmlns="http://www.example.org/a">This element in another namespace should have a green background.</q> 19 <r xmlns="">This element without a namespace should have a green background.</r> 20 <p>This paragraph should be unstyled.</p> 21 </div> 22 </body> 23 </html>