if we have this structure, how can hide the #div if the button is focused
before I used to do it using the selector ~ like that but now it didn't work out
button:focused ~ #div{
display: none;
}
<div id="div">This is a normal div</div>
<div class="container">
<button type="button" class="button">Click me</button>
</div>