summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-position/sticky/position-sticky-padding-002-ref.html
blob: cc9d447d1c6c74d4f465f9359f3f7785182bb06e (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
<!DOCTYPE html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
  .block {
    position: relative;
    width: 210px;
    height: 300px;
    padding: 10px;
    padding-left: 0;
    margin: 10px;
    float: left;
    background-color: #ddd;
  }

  .row {
    height: 100px;
    width: 210px;
    background-color: blue;
  }

  .abspos {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: cyan;
    top: 0;
    left: 210px;
  }
</style>
<div class="block">
  <div class="row"></div>
  <div class="abspos"></div>
</div>
<div class="block">
  <div class="row"></div>
  <div class="abspos"></div>
</div>