| <csstest def=":only-of-type pseudo-class" module="W3C Selectors" modulename="css3-modsel" number="37" rev="1.0" date="11-july-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> |
| <cssrules>.red { background-color : red } |
| .t1 :only-of-type { background-color : lime } |
| </cssrules> |
| <code> |
| <div class="t1" xmlns="http://www.w3.org/1999/xhtml"> |
| <p>This paragraph should have normal background</p> |
| <address class="red">But this address should have green background</address> |
| <p>This paragraph should have normal background</p> |
| </div> |
| </code> |
| </csstest> |