| <csstest def="Child combinator" module="W3C Selectors" modulename="css3-modsel" number="44b" rev="1.1" date="05-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>.white { background-color: transparent ! important; } |
| .green { background-color: lime; } |
| div > p.test { background-color: red; }</cssrules> |
| |
| <code> |
| <div xmlns="http://www.w3.org/1999/xhtml"> |
| <p class="white test">This paragraph should be unstyled.</p> |
| <div> |
| <p class="white test">This paragraph should be unstyled.</p> |
| </div> |
| </div> |
| <table xmlns="http://www.w3.org/1999/xhtml"> |
| <tbody> |
| <tr> |
| <td> |
| <p class="green test">This paragraph should have a green background.</p> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </code> |
| </csstest> |