Is it possible to make it so that when you click on a child of one parent block, the styles of the other parent block change, only with the help of css. For example: <div class="one"> <button>Кнопка</button> </div> <div class="two"></div> So that when you click on the button, the .two styles change
|
:hasdrafts.csswg.org/selectors-4/#has-pseudo in a style like this.one:has(> button:active) + .two {...}but in practice it is not yet supported caniuse.com/#feat=css-has - Heidel