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/scoped/collision.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<link rel="help" href="https://www.w3.org/TR/css-view-transitions-2/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/web-animations/testcommon.js"></script>
<style>
#collider { view-transition-name: foo }
</style>
</head>
<body>
<div id=s1>
<div id=s2>
<div id=collider>
</div>
</div>
</div>
<script>
promise_test(async () => {
const t1 = s1.startViewTransition(() => { });
await t1.ready;
let threw = false;
try {
const t2 = s2.startViewTransition(() => { });
await t2.ready;
} catch (e) { threw = true; }
assert_true(threw);
});
</script>
</body>
</html>