3 if (window
.testRunner
) {
4 testRunner
.waitUntilDone();
5 testRunner
.dumpAsText();
10 var actual
= document
.querySelector("img").offsetHeight
;
11 var out
= document
.querySelector("pre");
12 if (actual
== expected
)
13 out
.textContent
= "PASS";
15 out
.textContent
= "FAIL: image height was " + actual
+ " expected " + expected
;
16 testRunner
.notifyDone();
20 Tests that an image with height
100% inside a floated div keeps its intrinsic height.
<br/>
21 See Bug: http://bugs.webkit.org/show_bug.cgi?id=
45439</div>
22 <div style=
"float: left;">
23 <!-- src is a 20 x 20 PNG -->
24 <img style=
"height: 100%; width: 100%;" onload=
"check()" src=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMAUExURQ//W/8AAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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