blob: 5ba03f4812d9e77383c3c9bb614a60e77f868a10 [file] [log] [blame]
<!DOCTYPE html>
img { height: 100%; }
body { height: 400px; }
<script src="../../resources/check-layout.js"></script>
<p>The square below should be 100px by 100px.
In strict mode, an image with height set to 100% and a fixed height ancestor should expand to its instrinsic height and width.
Percentage height "is calculated with respect to the height of the generated box's containing block." </p>
<img src="resources/square-blue-100x100.png" onload="checkLayout('img')" data-expected-height=100>