I have the following code and cannot figure out why it doesn't work :
table {
border: 1px solid black;
}
table.whole > tr > td {
padding: 20px 0 20px 0;
}
<!-- doesn't work via css rule -->
<table class="whole">
<tr>
<td>
<table>
<tr>
<td>abcd</td>
</tr>
</table>
</td>
</tr>
</table>
<hr>
<!-- works inline -->
<table>
<tr>
<td style="padding:20px 0 20px 0">
<table>
<tr>
<td>abcd</td>
</tr>
</table>
</td>
</tr>
</table>
May I misunderstand how the child selector >
works or is there some kind of limitation here, or a bug ?...