<html>
<head>
    <title>Test for http://bugs.webkit.org/show_bug.cgi?id=14202</title>
</head>
<body>
    <table style="border-collapse: collapse;">
        <caption style="background-color: green; height: 50px;"></caption>
        <tr>
            <td id="target" style="background-color: green; height: 50px; width: 50px;">
            </td>
        </tr>
    </table>
    <script>
        document.body.offsetTop;
        document.getElementById('target').style.width = "100px";
    </script>
</body>
</html>
