summaryrefslogtreecommitdiffstats
path: root/gfx/tests/reftest/1444904.html
blob: c9fe387e740b5703be407f710d81e417bd285844 (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>
<html>
  <head>
    <style>
    #container {
        float: left;
        position: sticky;
        top: 0;
        margin-top: -20px;
        z-index: 100;
    }

    #target {
        margin-top: 80px;
        width: 20px;
        height: 20px;
        background: green;
    }

    #necessary-fixed-box {
        position: fixed;
        top: 0;
        width: 20px;
        height: 20px;

    }
    </style>
  </head>

  <body style="height: 10000px;">
    <div id="container">
      <div id="target"></div>
      <div id="necessary-fixed-box"></div>
    </div>
  </body>
</html>