Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<!DOCTYPE html>
<title>View Transitions: @view-transition opt out in new document.</title>
<link rel="author" href="mailto:bokan@chromium.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
@view-transition {
navigation: auto;
}
</style>
<script>
const params = new URLSearchParams(location.search);
const mode = params.get("mode") || "test";
switch (mode) {
case "test":
promise_test(async t => {
const result = await new Promise(resolve => {
window.did_reveal = e => { resolve(e) };
const popup = window.open("?mode=old");
t.add_cleanup(() => popup.close());
});
assert_equals(result, "pass");
});
break;
case "old":
onload = () => requestAnimationFrame(() => requestAnimationFrame(() => {
location.replace("resources/at-rule-opt-in-none.html");
}));
break;
}
</script>