What I am trying to achieve - when table footer is rendered, I want to remove the border radius from the table cells within the last tr inside table body. Not sure if the following code should even work:
table tbody:not(+ tfoot) tr td {
border-radius: 0;
}
table {
border-collapse: separate;
border-spacing: 0;
}
td {
border: 1px solid;
border-radius: 4px;
background-color: red;
}
table tbody:not(+ tfoot) tr td {
border-radius: 0;
}
<table class=with-footer>
<tbody>
<tr><td>Body cell</td></tr>
<tr><td>Body cell</td></tr>
</tbody>
<tfoot>
<tr><td>Footer cell</td></tr>
</tfoot>
</table>
I am open to other suggestions too, maybe I am overcomplicating the task.