<!doctype html> | |
<html> | |
<head> | |
<script> | |
if (window.testRunner) | |
window.testRunner.dumpAsText() | |
function runTest() | |
{ | |
var elem = document.getElementById('test'); | |
if (window.internals) { | |
var rect = internals.boundingBox(elem); | |
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> | |