title: Select all elements before element with class?
body: <p>In CSS is it possible to select all elements before an element with a given class?</p>
  
  <p>Example HTML:</p>
  
  <pre><code>&lt;div&gt;
      &lt;a href&gt;One&lt;/a&gt;
      &lt;a href&gt;Two&lt;/a&gt;
      &lt;a href&gt;Three&lt;/a&gt;
      &lt;a href class="active"&gt;Four&lt;/a&gt;
      &lt;a href&gt;Five&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And CSS:</p>
  
  <pre><code>.active:(all-before) {
      border-left: solid 1px #C0FFEE;
  }
  </code></pre>
  
  <p>So links 'One', 'Two', and 'Three' would would have a left border but 'Four' and 'Five' would not.</p>