blob: b8a179d61c9e3be387dbb6353dad58778b1f535e [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.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>