Automatic update from web-platform-tests WebKit export of https://bugs.webkit.org/show_bug.cgi?id=311746 (#59877) -- wpt-commits: 6fb724af7b721f91aeef4ce237ba90112408fd68 wpt-pr: 59877
21 lines
838 B
HTML
21 lines
838 B
HTML
<!doctype html>
|
|
<meta charset="utf-8">
|
|
<link rel=help href="https://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-request-close">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/resources/testdriver.js"></script>
|
|
<script src="/resources/testdriver-actions.js"></script>
|
|
<script src="/resources/testdriver-vendor.js"></script>
|
|
<link rel="author" href="mailto:lwarlow@igalia.com" />
|
|
|
|
<script>
|
|
test(() => {
|
|
const doc = document.implementation.createHTMLDocument("");
|
|
const dialog = doc.createElement("dialog");
|
|
doc.body.append(dialog);
|
|
dialog.setAttribute("open", "");
|
|
dialog.requestClose();
|
|
assert_true(dialog.open);
|
|
}, "requestClose() should not close the dialog when is in inactive document");
|
|
</script>
|