Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / css / absolute-position-with-negative-width.html
1 <!DOCTYPE HTML>
2 <script src="../../resources/js-test.js"></script>
3
4 <div style="position: relative; width: 0px">
5     <div style="position: absolute; left: 1px; right: 1px;" id="absolute_with_left_right"></div>
6 </div>
7
8 <script>
9 absolute_with_left_right = document.getElementById("absolute_with_left_right");
10 shouldBe("absolute_with_left_right.getBoundingClientRect().width","0");
11 shouldBe("absolute_with_left_right.getClientRects()[0].width","0");
12 shouldBe("absolute_with_left_right.offsetWidth","0");
13 </script>