I am aware of the :has() proposal but this is not working yet.
My question is how to toggle the font-weight of AAAAAAA and BBBBBBB to bold when PUSH1 Button is clicked. And the CCCCCCC and DDDDDDD when PUSH2 is pressed.
<table>
<tr>
<td>AAAAAAA</td>
<td>BBBBBBB</td>
<td><button id="1" tabindex="0">PUSH1</button></td>
</tr>
<tr tabindex="0">
<td>CCCCCCC</td>
<td>DDDDDDD</td>
<td><button id="2" tabindex="0">PUSH2</button></td>
</tr>
<tr>
<td>EEEEEEE</td>
<td>BBBBBBB</td>
<td><button id="3" tabindex="0">PUSH3</button></td>
</tr>
</table>
tr:has(> button:focus)
{
font-weight: bold;
}
I am trying to find a solution with CSS