lets have this selector
.A ~ .A .B{
padding-top: 0;
}
I understand that this will put padding-top: 0
when at least two elements use class A together with B
now lets assume that there are indeed two elements but one has also display: none
<div class="A">
<div class="B"><div> //do not apply this since second div with A is disabled
<div>
<div class="A" style="display:none"><div>
in this way how to modify this selector not be applicable since on UI it looks like there just one div.