summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-layout-api/auto-block-size/auto-block-size-absolute-ref.html
blob: 416d57c43fa72e401fc833ecd214e09470fb3980 (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
<!DOCTYPE html>
<style>
.container {
  position: relative;
  margin: 20px 0;
  width: 200px;
  height: 200px;
  border: solid 2px;
}

.result {
  position: absolute;
  background: green;
}
</style>
<div class="container">
  <div class="result" style="width: 100px; height: 100px; bottom: 0px;"></div>
</div>
<div class="container">
  <div class="result" style="width: 100px; height: 200px;"></div>
</div>
<div class="container">
  <div class="result" style="width: 100px; height: 100px;"></div>
</div>
<div class="container">
  <div class="result" style="width: 200px; height: 100px;"></div>
</div>