blob: cb98fe7d857c1c6e515c0fdcb5fd7163f9f81870 [file] [log] [blame]
<!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.width == 400)
document.getElementById('console').innerHTML = "PASS"
else
document.getElementById('console').innerHTML = "FAIL: width was not 400: " + JSON.stringify(rect);
}
}
</script>
</head>
<body onload="runTest()">
<div id="container" style="width:400px"><span id="test"><img style="width: 50px; height: 50px" src="about:blank"><div style="width: 75px; height: 200px "></div><img style="width: 50px; height: 50px" src="about:blank"></span></div>
<div id="console">FAIL: Test did not run.</div>
</body>
</html>