CSS 3 Module <== Test # ==>
W3C Selectors 93 of 153 of the static tests category
Testing Date Revision
NEGATED :only-child pseudo-class (ID #81b) 2001-11-12 1.1

This paragraph should have a green background.

This div contains only one paragraph.

This paragraph should be unstyled.

.green { background-color : lime ! important }
p:not(:only-child) { background-color : lime }
div.testText > div > p { margin-left : 1em }
 <p class="green">This paragraph should have a green background.</p>
 <div>This div contains only one paragraph.
  <p>This paragraph should be unstyled.</p>
 </div>