CSS 3 Module <== Test # ==>
W3C Selectors 87 of 140 of the static tests category
Testing Date Revision
NEGATED :only-child pseudo-class (ID #81) 12-november-2001 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>