Most if not all CSS selectors effect a child element of a parent, what I need to do is select the parent when the child 'a' is in an active state. Please see HTML below:
<tbody>
<tr class="row-1">
<td class="col-1 descriptionClass">
<div class="views-field views-field-title">
<span class="field-content">
<a href="/listen-again/2128">a thing...</a>
</span>
</div>
</td>
</tr>
</tbody>
I need to select "td class='col-1 descriptionClass'
" when "a href='/listen-again/2128'>a thing.../a
" is active.
Have seen this: Selecting Parent of a Child in CSS but need to use CSS, not JS or Jquery.
Please note there is little I can do to edit the HTML itself as I am using a content management system (Drupal). I have tried a number of selectors but nothing working to date.
Any (constructive) input most appreciated.