summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/top-layer-remove-popover-attribute.html
blob: 3827e90c5bdb01c1b59fc159bd312a2afbd09342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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>