<!DOCTYPE html> | |
<script src="../../resources/check-layout.js"></script> | |
<style> | |
div { width: 200px; min-height: 1px; height: 20px; border: 1px solid green; padding: 50px;} | |
img { margin:0; padding:0; border:0; width:100%; height: 100%; background: silver} | |
</style> | |
<p>Ensure we calculate the available height for replaced content correctly.</p> | |
<div> | |
<img src="" data-expected-height=20> | |
</div> | |
<script> | |
checkLayout('img'); | |
</script> | |