blob: 117ded392a28d0808f75d5df1271af86284fac91 [file] [log] [blame]
<!-- Based on fast/repaint/table-outer-border.html -->
<!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/paint-invalidation-test.js"></script>
<script>
window.expectedPaintInvalidationObjects = [
"LayoutTableCell TD",
"LayoutTableRow TR",
"LayoutTableCell TD",
"LayoutTableRow TR",
"LayoutTableSection TBODY",
"LayoutTable TABLE id='table'",
"LayoutTableCell TD",
"LayoutTableCell TD",
"LayoutTable TABLE id='table' class='green'",
"LayoutTableCell TD",
"LayoutTableCell TD",
"LayoutTableSection TBODY",
"LayoutTableRow TR",
"LayoutTableCell TD",
"LayoutTableRow TR",
"LayoutTableCell TD",
];
function paintInvalidationTest()
{
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="runPaintInvalidationTest();">
<div id="container" style="width: 500px;">
<table id="table">
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
</table>
</div>
</body>
</html>