| <csstest def="NEGATED :only-child pseudo-class" module="W3C Selectors" modulename="css3-modsel" number="81" rev="1.1" date="12-november-2001" xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.example.org/css3tests"> |
| |
| <author>Daniel Glazman</author> |
| <author>Ian Hickson</author> |
| <cssrules>.red { background-color : red } |
| p:not(:only-child) { background-color : lime } |
| div.testText > div > p { margin-left : 1em } |
| </cssrules> |
| <code> |
| <p class="red" xmlns="http://www.w3.org/1999/xhtml">This paragraph should have a green background.</p> |
| <div xmlns="http://www.w3.org/1999/xhtml">This div contains only one paragraph. |
| <p>This paragraph should be unstyled.</p> |
| </div> |
| </code> |
| </csstest> |