diff options
Diffstat (limited to 'testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/top-layer-remove-popover-attribute.html')
-rw-r--r-- | testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/top-layer-remove-popover-attribute.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/top-layer-remove-popover-attribute.html b/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/top-layer-remove-popover-attribute.html new file mode 100644 index 0000000000..3827e90c5b --- /dev/null +++ b/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/top-layer-remove-popover-attribute.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<meta charset="utf-8"> +<meta name="assert" content="Removing the popover attribute of a hidden popover should not remove the dialog from the top layer."> +<head> + <title>Shown modal dialog where the popover attribute is removed</title> + <link rel="help" href="https://html.spec.whatwg.org/multipage/popover.html#hide-popover-algorithm"> + <link rel="match" href="top-layer-remove-popover-attribute-ref.html"> +</head> +<body> + <dialog popover style="padding: 2em"></dialog> + <script> + const d = document.querySelector("dialog"); + d.showModal(); + d.popover = null; + </script> +</body> +<html> |