summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/capture-with-offscreen-child-translated-ref.html
blob: d724d0b7f9fa17c48b119279023309fb89ba392a (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
<!doctype html>
<html>
<title>View transitions: offscreen child (ref)</title>
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/">
<link rel="author" href="mailto:vmpstr@chromium.org">

<style>
body {
  background: pink;
}

.invisible {
  position: absolute;
  top: 100px;
  width: 50px;
  height: 50px;
  background: green;
}
.target {
  position: relative;
  top: 200px;
  width: 100px;
  height: 100px;
  background: blue;
}
</style>

<div class=target></div>
<div class=invisible></div>