title: Is it possible to select elements that do not have a child of a certain type?
body: <p>I'm trying to select <code>&lt;a&gt;</code> elements that are not the parents of <code>&lt;img&gt;</code> elements. (Note: if it's relevant some of the anchors I want to select are childless.) I tried this:</p>
  
  <pre><code>a &gt; :not(img) {}
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>a:not(&gt; img) {}
  </code></pre>
  
  <p>but neither of them seem to work. How would I accomplish this in CSS?</p>