chromium/third_party/blink/web_tests/fast/css/getComputedStyle/computed-style-negative-top.html

<script>
function test() {
    if (window.testRunner)
        testRunner.dumpAsText();
    var style = document.defaultView.getComputedStyle(document.getElementById("test"), "");
    var result = document.getElementById("result");
    if (style.top == "-1px")
        result.appendChild(document.createTextNode("Test succeeded! Top is " + style.top + "."));
    else
        result.appendChild(document.createTextNode("Test failed! Top is " + style.top + "."));
}
</script>
<body onload="test()">
<div id="test" style="position:relative; top:-1px"></div>
<div id="result"></div>
</body>