-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathnested-exit.tentative.html
More file actions
59 lines (52 loc) · 1.47 KB
/
nested-exit.tentative.html
File metadata and controls
59 lines (52 loc) · 1.47 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
53
54
55
56
57
58
59
<!DOCTYPE html>
<html class=reftest-wait>
<title>Nested group should stay nested in an exit transition</title>
<meta name=fuzzy content="maxDifference=0-255; totalPixels=0-515">
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-2/">
<link rel="match" href="nested-ref-100.html">
<link rel=stylesheet href="resources/pause-view-transitions.css"></link>
<script src="/common/reftest-wait.js"></script>
<script src="resources/compute-test.js"></script>
<body>
<style>
::view-transition-old(*),
::view-transition-new(*),
::view-transition-group(*) {
animation-play-state: paused;
}
::view-transition-group-children(*) {
background: inherit;
}
::view-transition-group(parent) {
background: green;
visibility: hidden;
}
::view-transition-group(child) {
visibility: visible;
background: inherit;
}
body {
margin: 0;
}
div {
top: 50px;
left: 50px;
width: 100px;
height: 100px;
position: absolute;
}
.parent {
view-transition-name: parent;
}
.child {
view-transition-name: child;
view-transition-group: parent;
}
.vt-new .child {
display: none;
}
</style>
<div class="parent">
<div class="child"></div>
</div>
</body>