CSS 3 Module <== Test # ==>
W3C Selectors 74 of 296
Testing Date Revision
NEGATED type element selector (ID #47) 2001-11-12 1.1

NOTE: The UA must support namespaces for this test.

The text in this paragraph should have a green background

This address should have a green background
This element in another namespace should have a green background. This element without a namespace should have a green background.

This paragraph should be unstyled.

div.stub span, div.stub address, div.stub *|q, div.stub *|r { background-color: red; }
address, *|q, *|r { display: block; margin: 1em; }
div.stub *:not(p) { background-color: lime; }
 <div class="stub">
  <p>
   <span>The text in this paragraph should have a green background</span>
  </p>
  <address>This address should have a green background</address>
  <q xmlns="http://www.example.org/a">This element in another namespace should have a green background.</q>
  <r xmlns="">This element without a namespace should have a green background.</r>
  <p>This paragraph should be unstyled.</p>
 </div>