summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/capture-with-visibility-hidden-child-ref.html
blob: 10067cc5212f467b6d6b62d7344d3b3a8c4dcaac (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
<!doctype html>
<html>
<title>View transitions: visibility hidden 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;
}
.target {
  width: 100px;
  height: 100px;
  view-transition-name: target;
  background: blue;
}
.invisible {
  width: 500px;
  height: 500px;
  visibility: hidden;
}
</style>

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