summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-layout-api/position-fragment/ref.html
blob: 4ce0a6e39de33707a325301a7dca13ea331420b0 (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
<!DOCTYPE html>
<style>
.result {
  position: relative;
  background: green;
  width: 100px;
  height: 100px;
}

.result-child-1 {
  background: rebeccapurple;
  width: 10px;
  height: 20px;

  position: absolute;
  top: 25px;
  left: 5px;
}

.result-child-2 {
  background: rebeccapurple;
  width: 15px;
  height: 25px;

  position: absolute;
  top: 60px;
  left: 50px;
}
</style>
<div class="result">
  <div class="result-child-1"></div>
  <div class="result-child-2"></div>
</div>