2 <script src=
"../../resources/testharness.js"></script>
3 <script src=
"../../resources/testharnessreport.js"></script>
5 <div style=
"top: 0; bottom: 0">
6 <img style=
"height: 100%" src=
"data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=">
11 assert_equals(document
.querySelector("img").offsetHeight
, 1);
12 }, "Inapplicable |top| and |bottom| specified style shouldn't affect height calculation");