Skip to content

Commit 40f89b0

Browse files
Construct ViewTransition object for element.
Bug: 394052227 Change-Id: If460a9ee062ebc5418cab9677adf0cc4f7d361e8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6287532 Reviewed-by: Kevin Ellis <[email protected]> Commit-Queue: Steve Kobes <[email protected]> Cr-Commit-Position: refs/heads/main@{#1425103}
1 parent 3e09896 commit 40f89b0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-2/">
5+
<script src="/resources/testharness.js"></script>
6+
<script src="/resources/testharnessreport.js"></script>
7+
</head>
8+
<body>
9+
<div id=scope></div>
10+
<script>
11+
12+
test(() => {
13+
const element = document.querySelector("#scope");
14+
const transition = element.startViewTransition(() => {});
15+
assert_true(transition instanceof ViewTransition);
16+
});
17+
18+
</script>
19+
</body>
20+
</html>

0 commit comments

Comments
 (0)