summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/element-stops-grouping-after-animation-ref.html
blob: ccbb794b009b276d5be3d02d1f7a7675c0f7467c (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
<!DOCTYPE html>
<html>
<title>View transitions: element remains grouping during transition</title>
<link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/">
<link rel="author" href="mailto:vmpstr@chromium.org">

<style>
.parent {
  top: 0;
  width: 100px;
  height: 100px;
  position: absolute;
  background: blue;
  transform-style: preserve-3d;
}
.child {
  background: green;
  width: 100px;
  height: 100px;
  top: 0;
  left: 0;
  position: absolute;
  transform: translateZ(-500px);
}
body {
  perspective: 1000px;
  height: 500px;
}
</style>

<div class=parent><div class=child></div></div>