CSS 3 Module <== Test # ==>
W3C Selectors 104 of 178
Testing Date Revision
NEGATED :only-child pseudo-class (ID #81) 2001-11-12 1.1

This paragraph should have a green background.

This div contains only one paragraph.

This paragraph should be unstyled.

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