summaryrefslogtreecommitdiffstats
path: root/layout/reftests/scrolling/opacity-mixed-scrolling-2.html
blob: e97ad6ac548b767e949fed7aa7600020c4de50ef (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
41
42
43
44
45
46
47
48
49
<!DOCTYPE HTML>
<html>
<style>
#scrollbox {
  margin: 20px;
  width: 300px;
  height: 400px;
  overflow-y: auto;
  background: linear-gradient(#444, #555);
}
.opacityBox {
  opacity: 0.999;
  border: 1px solid black;
  margin: 20px;
  padding: 20px;
}
#inner {
  background-image: linear-gradient(white, rgba(255,255,255,0));
}
</style>

<div id="scrollbox" class="scrollTop">
  <div id="inner">
    outside
    <div class="opacityBox">in opacity box</div>
    outside
    <div class="opacityBox">in opacity box</div>

    outside
    <div class="opacityBox">in opacity box</div>
    outside
    <div class="opacityBox">in opacity box</div>
    outside
    <div class="opacityBox">in opacity box</div>
    outside
    <div class="opacityBox">in opacity box</div>
    outside
    <div class="opacityBox">in opacity box</div>

    outside
    <div class="opacityBox">in opacity box</div>
    outside
    <div class="opacityBox">in opacity box</div>
    outside
  </div>
</div>
<script src="scrolling.js"></script>
</body>
</html>