summaryrefslogtreecommitdiffstats
path: root/layout/reftests/async-scrolling/group-opacity-surface-size-1-ref.html
blob: 12b6ee367a8ddd7a81509170e0e0e8f0cb1e2cd7 (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
35
36
<!DOCTYPE html>
<style>

body {
  margin: 0;
  overflow: hidden;
}

.opacity {
  opacity: 0.8;
}

.box {
  left: 0;
  top: 200px;
  width: 200px;
  height: 200px;
}

.absolute {
  position: absolute;
  background: green;
  top: 100px;
}

.fixed {
  position: absolute;
  background: blue;
}

</style>

<div class="opacity">
  <div class="box absolute"></div>
  <div class="box fixed"></div>
</div>