LayoutTests:
[WebKit-https.git] / LayoutTests / fast / css / computed-style-negative-top.html
1 <div id="test" style="position:relative; top:-1px"></div>
2 <script>
3 var style = document.defaultView.getComputedStyle(document.getElementById("test"));
4 if (window.layoutTestController)
5     layoutTestController.dumpAsText();
6 if (style.top == "-1px")
7     document.write("Test succeeded! Top is " + style.top + ".");
8 else
9     document.write("Test failed! Top is " + style.top + ".");
10 </script>