Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/popovers/popover-inside-display-none.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<link rel=author href="mailto:masonf@chromium.org">
<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>