<!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>
