I am trying to make a selector that matches the element zzz if the input button is pressed.
<label>
<input type="radio" name="hideshow">
<h1>{{heading}}</h1>
</label>
<zzz class="hideable">
Some content to show if button pressed.
</zzz>
So far after much struggle I have stumbled on a new selector :has
. However it is not working. More research shows that it is disabled for css (can be used from javascript), because of its poor performance.
How can I get this to work? I am sure there must be a simple solution, but I am not seeing it.