summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/css-tags-paint-order-ref.html
blob: 780d5fbd453e9fad21e59d4efb5f100df3dd3003 (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
<!DOCTYPE html>
<title>View transitions: css tags generate pseudo elements in paint order (ref)</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<link rel="author" href="mailto:vmpstr@chromium.org">

<style>
div {
  position: absolute;
  top: 50px;
  width: 100px;
  height: 100px;
}
#one {
  background: green;
  left: 50px;
  z-index: 1;
}
#two {
  background: yellow;
  left: 125px;
  z-index: -1;
}
#three {
  background: blue;
  left: 200px;
  z-index: 0;
}
body { background: lightpink; }
</style>

<div id=one></div>
<div id=two></div>
<div id=three></div>