CSS 3 Module <== Test # ==>
W3C Selectors 51 of 140 of the static tests category
Testing Date Revision
Child combinator (ID #44) 05-november-2001 1.1

This paragraph should have a green background

This paragraph should have a green background

This paragraph should be unstyled.

.white { backround-image: 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>