blob: 3b8628cef45a4bc6c8c3a8faf2c6d04b50db2b68 (
plain)
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
53
54
55
56
|
<!DOCTYPE html>
<html class=reftest-wait>
<title>View transitions: fragmented elements skipped</title>
<link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/">
<link rel="author" href="mailto:vmpstr@chromium.org">
<link rel="match" href="fragmented-at-start-ignored-ref.html">
<script src="/common/reftest-wait.js"></script>
<style>
#spacer {
width: 100px;
height: 950px;
background: lightgreen;
}
#container {
width: 500px;
columns: 2;
height: 500px;
}
#target {
width: 200px;
height: 200px;
background: green;
view-transition-name: target;
}
#unrelated {
width: 100px;
height: 100px;
background: lightblue;
view-transition-name: unrelated;
}
::view-transition {
background: pink;
}
::view-transition-group(root) {
animation-duration: 500s;
visibility: hidden;
}
::view-transition-group(target) {
border: 1px solid black;
}
</style>
<div id=container>
<div id=spacer></div>
<div id=target></div>
</div>
<div id=unrelated></div>
<script>
function runTransition() {
document.startViewTransition().ready.then(takeScreenshot);
}
requestAnimationFrame(() => requestAnimationFrame(runTransition))
</script>
|