Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / getComputedStyle / computed-style-negative-top.html
blob582f1a039731afc08759c4f99c55d6346c51be36
1 <script>
2 function test() {
3 if (window.testRunner)
4 testRunner.dumpAsText();
5 var style = document.defaultView.getComputedStyle(document.getElementById("test"), "");
6 var result = document.getElementById("result");
7 if (style.top == "-1px")
8 result.appendChild(document.createTextNode("Test succeeded! Top is " + style.top + "."));
9 else
10 result.appendChild(document.createTextNode("Test failed! Top is " + style.top + "."));
12 </script>
13 <body onload="test()">
14 <div id="test" style="position:relative; top:-1px"></div>
15 <div id="result"></div>
16 </body>