1
0
Fork 0
firefox/testing/web-platform/tests/html/semantics/popovers/popover-inside-display-none.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

19 lines
642 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<link rel=author href="mailto:masonf@chromium.org">
<link rel=help href="https://open-ui.org/components/popover.research.explainer">
<link rel=help href="https://html.spec.whatwg.org/multipage/popover.html">
<link rel=match href="popover-inside-display-none-ref.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(':popover-open'))
document.body.appendChild(document.createTextNode('FAIL'));
</script>