blob: 748107cdea3f4541c51816f0fae4c2e23b5642b0 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<div style="margin: 1.1em;">
<div id="test"></div>
</div>
<p>
Tests that a block without overflow, borders, margin or padding reports the same clientWidth as offsetWidth.
</p>
<script>
var el = document.getElementById("test");
if (el.offsetWidth == el.clientWidth)
testPassed('offsetWidth and clientWidth are the same');
else
testFailed('offsetWidth is ' + el.offsetWidth + ' but clientWidth is ' + el.clientWidth);
</script>
</body>
</html>