It is possible to add a conditional for the td to set the background
td:has(>.special_class) { background-color: yellow; }
this will apply background color yellow when it has a direct child called specialclass