<html><head>
  <title>Child combinator</title>
  <style type="text/css">.white { background-color: transparent ! important; }
.red { background-color: red; }
div > p.test { background-color: lime; }</style>
  <link rel="author" title="Daniel Glazman" href="http://glazman.org/">
  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
  <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"> <!-- bogus link to make sure it gets found -->
  <meta name="flags" content="">
 </head>
 <body>
 <div>
  <!--[ELEMENT('div > p.test')]--><p class="red test"><!--[TEXT('div > p.test')]-->This paragraph should have a green background<!--[/TEXT('div > p.test')]--></p><!--[/ELEMENT('div > p.test')]-->
  <div>
   <!--[ELEMENT('div > p.test')]--><p class="red test"><!--[TEXT('div > p.test')]-->This paragraph should have a green background<!--[/TEXT('div > p.test')]--></p><!--[/ELEMENT('div > p.test')]-->
  </div>
 </div>
 <table>
  <tbody>
   <tr>
    <td>
     <p class="white test">This paragraph should be unstyled.</p>
    </td>
   </tr>
  </tbody>
 </table>

</body></html>