I have a table similar to this example
<tr class="line">...</tr>
<tr class="line">...</tr>
<tr class="line">...</tr>
<tr class="sum-line" id="i-know-this-one">...</tr>
<tr class="sum-line">...</tr>
<tr class="sum-line">...</tr>
With css (no jquery), how do I select the last .line? that is, the last tr before the #i-know-this-one.
Keep in mind that amount of rows before after #i-know-this-one will vary in my context, so we cannot simply count nth-child from top or bottom of the table