summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/view-transition-name-is-grouping.html
blob: 95739351f0fa508ba3449f104317812acbba89b6 (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
<!DOCTYPE html>
<html>
<title>View transitions: view-transition-name non-none value is a grouping value</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="view-transition-name-is-grouping-ref.html">

<style>
.parent {
  top: 0;
  width: 100px;
  height: 100px;
  position: absolute;
  background: red;
  transform-style: preserve-3d;
  view-transition-name: target;
}

.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>