Is it possible to achieve this functionality using only CSS: When the parent element has a "hidden" class, its child elements with an "a" class should be hidden
For example:
<div class="parent">
<div class="a"></div> // Visible
<div class="b"></div> // Visible
</div>
<div class="parent hidden">
<div class="a"></div> // Invisible
<div class="b"></div> // Visible
</div>