Automatic update from web-platform-tests ScopedVT: Skip on tag collision. Skip the newly requested transition if one of its would-be participants is already participating in an existing transition. With crbug.com/480860018 fixed, this implements "outermost wins" logic favored by noamr on https://github.com/w3c/csswg-drafts/issues/12323. Bug: 480993675 Validate-Test-Flakiness: skip Change-Id: Ic65ac489973d664d7123ff93fbd1f5f1f815124d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7548985 Reviewed-by: Vladimir Levin <vmpstr@chromium.org> Commit-Queue: Steve Kobes <skobes@chromium.org> Cr-Commit-Position: refs/heads/main@{#1582190} -- wpt-commits: 2d32e15251d41e4e97e3c5be9217f03be248dbbf wpt-pr: 57658
38 lines
698 B
HTML
38 lines
698 B
HTML
<!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>
|