| <!DOCTYPE html> |
| <style> |
| body * { |
| border: 2px solid red; |
| padding: 5px; |
| clear: both; |
| } |
| |
| .container { |
| height: 500px; |
| border-color: blue; |
| |
| display: inline-block; |
| width: 100px; |
| } |
| |
| iframe { |
| width: 50px; |
| } |
| |
| .fill-available { |
| height: 100%; |
| width: 64px; |
| box-sizing: border-box; |
| } |
| </style> |
| <div class="container"> |
| <iframe> |
| height: min-content<br>on this box. |
| </iframe> |
| |
| <iframe> |
| height: max-content<br>on this box. |
| </iframe> |
| |
| <iframe> |
| height: fit-content<br>on this box. |
| </iframe> |
| </div> |
| |
| <div class="container"> |
| <iframe class="fill-available"> |
| height: fill-available<br> on this box. |
| </iframe> |
| </div> |
| |
| <div class="container"> |
| <iframe> |
| min-height: min-content<br>on this box. |
| </iframe> |
| |
| <iframe> |
| min-height: max-content<br>on this box. |
| </iframe> |
| |
| <iframe> |
| min-height: fit-content<br>on this box. |
| </iframe> |
| </div> |
| |
| <div class="container"> |
| <iframe class="fill-available"> |
| min-height: fill-available<br> on this box. |
| </iframe> |
| </div> |
| |
| <div class="container"> |
| <iframe> |
| max-height: min-content<br>on this box. |
| </iframe> |
| |
| <iframe> |
| max-height: max-content<br>on this box. |
| </iframe> |
| |
| <iframe> |
| max-height: fit-content<br>on this box. |
| </iframe> |
| </div> |
| |
| <div class="container"> |
| <iframe class="fill-available"> |
| max-height: fill-available<br> on this box. |
| </iframe> |
| </div> |