Why doesn't this work? Specifically, I'm trying to show some text in a div, if it contains a hidden form...
form.hidden {
  display: none;
}
div:has(form.hidden)::before {
  color: red;
  font-size: x-large;
  content: 'This DIV has a hidden FORM';
}<div>
  <form class="hidden">
    form
  </form>
</div> 
    