title: CSS Selector "(A or B) and C"?
body: <p>This should be simple, but I'm having trouble finding the search terms for it.<br>
  Let's say I have this:</p>
  
  <pre><code>&lt;div class="a c"&gt;Foo&lt;/div&gt;
  &lt;div class="b c"&gt;Bar&lt;/div&gt;
  </code></pre>
  
  <p>In CSS, how can I create a selector that matches something that matches "(.a or .b) and .c"?</p>
  
  <p>I know I could do this:  </p>
  
  <pre><code>.a.c,.b.c {
    /* CSS stuff */
  }
  </code></pre>
  
  <p>But, assuming I'm going to have to do this sort of logic a lot, with a variety of logical combinations, is there a better syntax?</p>