-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathcolumn-span-during-transition-doesnt-skip.html
More file actions
52 lines (47 loc) · 1.21 KB
/
column-span-during-transition-doesnt-skip.html
File metadata and controls
52 lines (47 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html class=reftest-wait>
<title>View transitions: column-span elements in a fragmented container aren't skipped</title>
<meta name="fuzzy" content="maxDifference=0-1;totalPixels=0-100000">
<link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/">
<link rel="author" href="mailto:mattwoodrow@apple.com">
<link rel="match" href="column-span-during-transition-doesnt-skip-ref.html">
<script src="/common/reftest-wait.js"></script>
<style>
#container {
width: 500px;
height: 500px;
}
.fragment {
columns: 2;
}
#target {
height: 200px;
background: green;
view-transition-name: target;
column-span: all;
}
::view-transition {
background: pink;
}
::view-transition-group(root) {
animation-duration: 500s;
visibility: hidden;
}
</style>
<div id=container>
<div id=target></div>
</div>
<script>
failIfNot(document.startViewTransition, "Missing document.startViewTransition");
function runTransition() {
let t = document.startViewTransition(() => {
container.classList.add("fragment")
});
t.ready.then(() => {
requestAnimationFrame(() => {
requestAnimationFrame(takeScreenshot);
});
});
}
requestAnimationFrame(() => requestAnimationFrame(runTransition))
</script>