title: I need to select the first non-hidden/visible child element excluding records with a specific class only using css
body: <p>In the below example, I want to change the text color of the first child that is visible.</p>
  <p>Here <code>&lt;div&gt;</code> with the class of <code>HideWidget</code> should be excluded; so, I <em>want</em> to see &quot;two,&quot; &quot;four&quot; and &quot;eight&quot; to be colored red.</p>
  <p>I have tried below css and its showing only &quot;four&quot;:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.parent .child .field:not(.HideWidget):first-child {
    color: red;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class='parent'&gt;
    &lt;div class='child'&gt;
      &lt;div class='field HideWidget'&gt;One&lt;/div&gt;
      &lt;div class='field'&gt;Two&lt;/div&gt;
      &lt;div class='field'&gt;Three&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class='child'&gt;
      &lt;div class='field'&gt;Four&lt;/div&gt;
      &lt;div class='field'&gt;Five&lt;/div&gt;
      &lt;div class='field'&gt;Six&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class='child'&gt;
      &lt;div class='field HideWidget'&gt;Seven&lt;/div&gt;
      &lt;div class='field'&gt;Eight&lt;/div&gt;
      &lt;div class='field'&gt;Nine&lt;/div&gt;
    &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p><a href="https://jsfiddle.net/ywhmgL49/" rel="nofollow noreferrer">JSFiddle</a></p>