Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-sizing/fit-content-block-size-abspos.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<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>