title: CSS - Select a div "outside" some other elements
body: <p>I think I'm looking for something not possible, but let's try:</p>
  <p>I need to select all the <code>div</code> elements with <code>class=&quot;product-block&quot;</code> that contain an image with <code>alt=&quot;ing1&quot;</code>.</p>
  <p>This is the code, for reference:</p>
  <pre class="lang-html prettyprint-override"><code>    &lt;div class=&quot;product-block&quot;&gt;
                            &lt;div class=&quot;aos-animate&quot;&gt;
                              &lt;div class=&quot;image-wrap&quot;&gt;
                      &lt;img class=&quot;lazyautosizes lazyloaded&quot; alt=&quot;ing1&quot;&gt;
                              &lt;/div&gt;
                            &lt;/div&gt;
                          &lt;/div&gt;
  </code></pre>