blob: 55c4416593cd1f068decbd82d8a202127eb579d4 [file] [log] [blame]
<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<div>
<div style="top: 0; bottom: 0">
<img style="height: 100%" src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=">
</div>
</div>
<script>
async_test(function(t) {
window.onload = function() {
t.step(function () {assert_equals(document.querySelector("img").offsetHeight, 1); t.done();});
};
}, "Inapplicable |top| and |bottom| specified style shouldn't affect height calculation");
</script>