<!doctype html>
<html>
<head>
<script>
if (window.testRunner)
    window.testRunner.dumpAsText()

function runTest()
{
    var rect = document.getElementById('test').getBoundingClientRect();
    if (rect.top > 0 || rect.left > 0)
        document.getElementById('console').innerHTML = 'PASS';
}
</script>
</head>
<body onload="runTest()">
<div>   <a id="test"></a>    </div>
<div id="console">FAIL</div>
</body>
</html>

