| <!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: 300px; |
| border-color: blue; |
| |
| display: inline-block; |
| width: 100px; |
| } |
| |
| .small { |
| height: 1px; |
| } |
| |
| .big { |
| height: 100px; |
| } |
| |
| .really-big { |
| height: 1000px; |
| } |
| </style> |
| <div class="container"> |
| <div class="min-content"> |
| height: min-content<br>on this box. |
| </div> |
| |
| <div class="max-content"> |
| height: max-content<br>on this box. |
| </div> |
| |
| <div class="fit-content"> |
| height: fit-content<br>on this box. |
| </div> |
| </div> |
| |
| <div class="container"> |
| <div class="fill-available"> |
| height: fill-available<br> on this box. |
| </div> |
| </div> |
| |
| <div class="container"> |
| <div class="small min-height-min-content"> |
| min-height: min-content<br>on this box. |
| </div> |
| |
| <div class="small min-height-max-content"> |
| min-height: max-content<br>on this box. |
| </div> |
| |
| <div class="small min-height-fit-content"> |
| min-height: fit-content<br>on this box. |
| </div> |
| </div> |
| |
| <div class="container"> |
| <div class="small min-height-fill-available"> |
| min-height: fill-available<br> on this box. |
| </div> |
| </div> |
| |
| <div class="container"> |
| <div class="big max-height-min-content"> |
| max-height: min-content<br>on this box. |
| </div> |
| |
| <div class="big max-height-max-content"> |
| max-height: max-content<br>on this box. |
| </div> |
| |
| <div class="big max-height-fit-content"> |
| max-height: fit-content<br>on this box. |
| </div> |
| </div> |
| |
| <div class="container"> |
| <div class="really-big max-height-fill-available"> |
| max-height: fill-available<br> on this box. |
| </div> |
| </div> |