summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/popovers/popover-inside-display-none.tentative.html
blob: b36f1bbffd24d8d4fec639aba6d45e34aa887215 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<meta charset="utf-8">
<link rel=author href="mailto:masonf@chromium.org">
<link rel=help href="https://open-ui.org/components/popup.research.explainer">
<link rel=match href="popover-inside-display-none-ref.tentative.html">

No popover should be displayed here.<p>

<div style="display:none">
    <div popover>This content should be hidden</div>
</div>

<script>
  const popover = document.querySelector('[popover]');
  popover.showPopover();
  if (!popover.matches(':open'))
    document.body.appendChild(document.createTextNode('FAIL'));
</script>