blob: 64796baca5c8554e25fe1524d843dcaf7b465118 [file] [log] [blame]
<!doctype html> <html> <head>
<script>
if (window.testRunner)
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>