summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-sizing/fit-content-block-size-abspos.html
blob: 8ed6771483d220665d73f2667bf698f01d249994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#valdef-width-fit-content">
<link rel="match" href="fit-content-block-size-fixedpos-ref.html">
<style>
body {
  overflow: hidden;
}
#container {
  height: fit-content;
  position: absolute;
  top: 50%;
  background-color: gold;
  margin: auto;
  bottom: 0;
}
</style>
<div id="container">
  <div style="height:90vh;width:50px;outline: 2px dotted red;"></div>
</div>