summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/3d-transform-incoming-ref.html
blob: c690ee2b9af53301711e096aa708a619a74cc14a (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
<!DOCTYPE html>
<title>View transitions: 3d transform ref</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<link rel="author" href="mailto:vmpstr@chromium.org">
<style>
div { box-sizing: border-box; will-change: transform }
.wrap_perspective {
  perspective: 100px;
  width: max-content;
  transform: translate(200px);
}
.rotatex {
  transform-style: preserve-3d;
  transform: rotateX(20deg);
  background: blue;
}
.shared {
  width: 100px;
  height: 100px;
  view-transition-name: shared;
}
body { background: pink }

</style>

<div class="wrap_perspective"><div class="rotatex shared"></div></div>