aboutsummaryrefslogtreecommitdiffstats
path: root/tests/html/overflow_scroll_relative_position.html
blob: 83c4b8c1675dcafbb0491343d34504f6cc8b4f8f (plain) (blame)
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
<html>
  <head>
    <link rel=match href=overflow_simple_b.html>
    <style>
      #first {
      height: 100px;
      width: 100px;
      overflow: scroll;
      position: relative;
      }
      #second {
      position: absolute;
      height: 100px;
      width: 90px;
      top: 0;
      left: 0;
      background: green;
      }
      #third {
      position: absolute;
      height: 100px;
      width: 110px;
      top: 0;
      left: 90px;
      background: orange;
      }
    </style>
  </head>
  <body>
    This element should be scrollable.
    <div id="first">
      <div id="second">
      </div>
      <div id="third">
      </div>
    </div>
  </body>
</html>