blob: a749df6962dbbf7c2eb0c9dc582f907064b48797 [file] [log] [blame]
<!DOCTYPE html>
<!--
All divs here should shrinkwrap to fit their content, except for fill-available
-->
<style>
@import "resources/height-keyword-classes.css";
body * {
border: 2px solid red;
padding: 5px;
clear: both;
}
.container {
height: 400px;
border-color: blue;
display: inline-block;
width: 100px;
}
.position-container {
border-color: green;
position: relative;
height: 100px;
}
.position-container > * {
position: absolute;
}
.f-a-container {
height: 100%;
box-sizing: border-box;
}
.small {
height: 1px;
}
.big {
height: 200px;
}
.really-big {
height: 1000px;
}
</style>
<div class="container">
<div class="position-container">
<div class="min-content">
height: min-content<br>on this box.
</div>
</div>
<div class="position-container">
<div class="max-content">
height: max-content<br>on this box.
</div>
</div>
<div class="position-container">
<div class="fit-content">
height: fit-content<br>on this box.
</div>
</div>
</div>
<div class="container">
<div class="position-container f-a-container">
<div class="fill-available">
height: fill-available<br> on this box.
</div>
</div>
</div>
<div class="container">
<div class="position-container">
<div class="small min-height-min-content">
min-height: min-content<br>on this box.
</div>
</div>
<div class="position-container">
<div class="small min-height-max-content">
min-height: max-content<br>on this box.
</div>
</div>
<div class="position-container">
<div class="small min-height-fit-content">
min-height: fit-content<br>on this box.
</div>
</div>
</div>
<div class="container">
<div class="position-container f-a-container">
<div class="small min-height-fill-available">
min-height: fill-available<br> on this box.
</div>
</div>
</div>
<div class="container">
<div class="position-container">
<div class="big max-height-min-content">
max-height: min-content<br>on this box.
</div>
</div>
<div class="position-container">
<div class="big max-height-max-content">
max-height: max-content<br>on this box.
</div>
</div>
<div class="position-container">
<div class="big max-height-fit-content">
max-height: fit-content<br>on this box.
</div>
</div>
</div>
<div class="container">
<div class="position-container f-a-container">
<div class="really-big max-height-fill-available">
max-height: fill-available<br> on this box.
</div>
</div>
</div>