blob: ecfd17816a36072495597461d199f1cc5a899e14 [file] [log] [blame]
<!DOCTYPE html>
img {min-height: 100%; max-height: 50px;}
<p> The blue square should be 50px by 50px. This is because says: "If the height of the containing block is not specified explicitly
(i.e., it depends on content height), and this element is not absolutely positioned, the percentage value is treated as '0' (for 'min-height')." </p>
<div id="child"><img id="image" src="resources/square-blue-100x100.png"></div>