I have a standard
<details>
<summary>
Text
</summary>
</details>
and a <div class="something"> elsewhere on the same page (outside the details altogether). How to hide the div when details[open], for example by setting .something {display: none;}?
I tried
details[open] > .something {
display: none;
}
with and without the >, but it doesn't do anything.
I'm open to JS as well, but I'd expect this to work in css.
