Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-view-transitions/navigation/pageswap-in-hidden-doc-should-skip-transition.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Tests pageswap dispatch on hidden Documents</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script>
promise_test(async t => {
let popup;
onload = () => {
popup = window.open("resources/navigate-after-hide.html");
t.add_cleanup(() => popup.close());
};
const result = await new Promise((resolve, reject) => {
window.popup_done = resolve;
window.popup_error = reject;
});
assert_equals(result, null);
}, "Outbound cross-document view transition is not allowed when document is hidden");
</script>