3 <style type=
"text/css">
27 <div id=
"top">no gap below
</div>
28 <div id=
"bottom">no gap above
</div>
30 <div id=
"description"></div>
31 <div id=
"console"></div>
32 <script src=
"../../resources/js-test.js"></script>
35 description("This test checks that floating point rounding doesn't cause misalignment. There should be no gap between the divs.");
37 var divtop
= document
.getElementById("top").getBoundingClientRect();
38 var divbottom
= document
.getElementById("bottom").getBoundingClientRect();
39 shouldBe('Math.round(divtop.bottom)', '31');
40 shouldBe('Math.round(divbottom.top)', '31');