CSS 3 Module <== Test # ==>
W3C Selectors 57 of 276 of the static tests category
Testing Date Revision
Child combinator (ID #44) 2004-02-29 1.2

This paragraph should have a green background

This paragraph should have a green background

This paragraph should be unstyled.

.white { background-color: transparent ! important; }
.red { background-color: red; }
div > p.test { background-color: lime; }
 <div>
  <p class="red test">This paragraph should have a green background</p>
  <div>
   <p class="red test">This paragraph should have a green background</p>
  </div>
 </div>
 <table>
  <tbody>
   <tr>
    <td>
     <p class="white test">This paragraph should be unstyled.</p>
    </td>
   </tr>
  </tbody>
 </table>