summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-position/containing-block-change-scrollframe-ref.html
blob: 63cfe1148a4d60231f6df47b29f8dbfaa0751279 (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
<!doctype html>
<meta charset="utf-8">
<title>CSS Test Reference</title>
<style>
  #container {
    width: 400px;
    height: 400px;
    margin: 100px;
    background-color: purple;
    position: relative;
  }
  #spacer {
    height: 300px;
  }
  #bottom {
    height: 100px;
    background-color: green;
  }
  #abspos {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: green;
    top: 0;
    left: 0;
  }
</style>
<div id="container">
  <div id="spacer"></div>
  <div id="bottom"></div>
  <div id="abspos"></div>
</div>