title: Target parent element depending on class of child
body: <p>I'm using the <a href="https://github.com/davidstutz/bootstrap-multiselect" rel="nofollow">bootstrap multiselect</a> library. I'm grouping options together and I want to style the group heading. The HTML ends up like: </p>
  
  <pre><code>&lt;div id="status-dropdown"&gt;
      &lt;ul&gt;
          &lt;li&gt;
              &lt;label class="multiselect-group"&gt;Group 1&lt;/label&gt;
          &lt;/li&gt;
          &lt;li class="customDropdownUL"&gt;
              &lt;a href="javascript:void(0);"&gt;
                  &lt;label class="checkbox"&gt;
                      &lt;input type="checkbox" value="Option A"&gt; Option A&lt;/label&gt;
              &lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
              &lt;label class="multiselect-group"&gt;Group 2&lt;/label&gt;
          &lt;/li&gt;
          &lt;li class="customDropdownUL"&gt;
              &lt;a href="javascript:void(0);"&gt;
                  &lt;label class="checkbox"&gt;
                      &lt;input type="checkbox" value="Option B"&gt;Option B&lt;/label&gt;
              &lt;/a&gt;
          &lt;/li&gt;
          &lt;li class="customDropdownUL"&gt;
              &lt;a href="javascript:void(0);"&gt;
                  &lt;label class="checkbox"&gt;
                      &lt;input type="checkbox" value="Option C"&gt; Option C&lt;/label&gt;
              &lt;/a&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And my CSS is:</p>
  
  <pre><code>li{
      list-style-type: none;
  }  
  
  #status-dropdown li:has(&gt; label.multiselect-group) {
      background: none repeat scroll 0 0 whitesmoke;
      padding-left: 10px; 
  }
  </code></pre>
  
  <p>So if a <code>li</code> has a <code>label</code> with class of <code>multiselect-group</code> then give it a background and padding. However, this isn't working. See the jsfiddle <a href="https://jsfiddle.net/79hcv8kk/" rel="nofollow">here</a>. </p>
  
  <p>Note: I cannot simply put a class on the li as I would need to modify the library to do that. </p>
  
  <p>How can I target a parent element depending on class of the child?  </p>