summaryrefslogtreecommitdiffstats
path: root/layout/reftests/async-scrolling/position-fixed-in-scroll-container-ref.html
blob: 3d2ba64eb1d4ab96c38e727de507465ead1406d7 (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
37
38
39
40
<!DOCTYPE html>
<html>
<style>

body {
  height: 10000px;
}

.outer-opacity {
  opacity: 0.8;
}

.scrollbox {
  border: 1px solid black;
  width: 200px;
  height: 400px;
  overflow: hidden;
}

.inner-opacity {
  height: 1000px;
  opacity: 0.8;
}

.fixed {
  background: blue;
  width: 100px;
  height: 100px;
}

</style>

<div class="outer-opacity">
  <div class="scrollbox">
    <div class="inner-opacity">
      <div class="fixed"></div>
    </div>
  </div>
</div>
</html>