<html>
<head>
    <script src="resources/text-based-repaint.js" type="text/javascript"></script>
    <script type="text/javascript">
        function repaintTest()
        {
            var div = document.getElementById("target");
            div.className = "green";
        }
    </script>
    <style>
        #target {
            background-color: red;
        }

        td {
            width: 100px;
            height: 15px;
        }

        #target.green {
            background-color:green;
        }
    </style>
</head>
<body onload="runRepaintTest()">
    <table>
        <tr><td>
        <tr><td>
        <tr><td>
        
        <tr id="target">
            <td>
            </td>
        </tr>
        
        <tr><td>
        <tr><td>
        <tr><td>
        
    </table>
</body>
</html>
