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

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

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