summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/table-outer-border.html
blob: bafdb2f6335a7152e59c42fdc55ec41b62ae14a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <title>Test for http://bugs.webkit.org/show_bug.cgi?id=12817</title>
    <style type="text/css" media="all">
        table {
            border-collapse: collapse;
        }
        
        table td {
            border: 15px solid red;
            background-color: green;
            height: 50px;
            width: 100px;
        }
        
        table.green td {
            border-color: green;
        }
    </style>
    <script src="resources/text-based-repaint.js"></script>
    <script>
        function repaintTest()
        {
            var container = document.getElementById('container');
            var table = document.getElementById('table');
            var newTable = table.cloneNode(true);
            newTable.className = "green";
            container.replaceChild(newTable, table);
        }
    </script>
</head>
<body onload="runRepaintTest();">
    <div id="container" style="width: 500px;">
        <table id="table">
            <tr>
                <td></td>
            </tr>
            <tr>
                <td></td>
            </tr>
        </table>
    </div>
</body>
</html>