summaryrefslogtreecommitdiffstats
path: root/layout/reftests/async-scrolling/sticky-inside-fixed-1-ref.html
blob: 6e9883f591f56f1b6f31893719bbf8b02153c204 (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
<!DOCTYPE html>
<html>
<head>
  <title>Testcase for Bug 1501342</title>
  <style>
    .panel {
      height:100%;
      overflow:hidden;
      position:fixed;
      right:0;
    }
    .scrollable {
      height:100%;
      overflow-y:hidden;
    }
    .sticky {
      position:sticky;
      top:0;
      height: 50px;
      width: 100px;
      background: red;
    }
    .content {
      margin-top: -50px;
      height:2000px;
      width:200px;
      background:green;
    }
  </style>
</head>
<body>
  <div class="panel">
    <div class="scrollable">
      <div class="sticky"></div>
      <div class="content"></div>
    </div>
  </div>
</body>
</html>