<?xml-stylesheet type="text/css" href="007.css"?>
<tests html:class="test" xmlns:html="http://www.w3.org/1999/xhtml">
  <testA> <item>This should be green. (A)</item> </testA>
  <testB> <thing> This should be green. (B) </thing> </testB>
  <testC> <item test="testC"> This should be green. (C) </item> </testC>
  <testd> <item testD="test"> This should be green. (D) </item> </testd>
  <testE> This should be green. (E) </testE>
  <testF test="testF"> This should be green. (F) </testF>  
  <style>
   
    * { color: red; display: block; margin: 0; padding: 0; }
    style { color: black; margin-top: 1em; white-space: pre; }

    testA > :not(testA) { color: green; }
    * > * :not(testB):not(item) { color: green; }
    testC :not([testC]) { color: green; }
    :not(testD) [testD] { color: green; }
    .test:not(head) testE { color: green; }
    *:not([test="testF"]) testF { color: green; }

  </style>
</tests>

