summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/content-visibility-auto-shared-element-ref.html
blob: f4a34967ec066c67b5f8b486b7079411a9adb884 (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
<!DOCTYPE html>
<html>
<title>View transitions: offscreen content</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<link rel="author" href="mailto:vmpstr@chromium.org">
<style>
body { background: pink }
.flex {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
}
.box {
  width: 100px;
  height: 500px;
  contain: paint;
  background: green;
  border: 1px solid black;
  box-sizing: border-box;
}
.vis-hidden {
  visibility: hidden;
}
.cv-hidden {
  content-visibility: hidden;
}
</style>

<div class=flex>
 <div class="box vis-hidden">ancestor c-v</div>
 <div class="box cv-hidden">self c-v</div>
 <div class="box cv-hidden">descendant c-v</div>
</div>