blob: 95796dbb8c7550e48831cb6312541618c17b554b [file] [log] [blame]
<!-- Based on fast/repaint/add-table-overpaint.html -->
<!DOCTYPE html>
<html>
<body onload="runPaintInvalidationTest()" style="margin: 0px">
<script src="resources/paint-invalidation-test.js"></script>
<style>
td {
height: 150px;
width: 150px;
background-color: blue;
}
</style>
<!-- This test adds 3 tables do the document. Adding the 3rd table should not cause the first table to repaint. -->
<div id="container"></div>
<script>
function addTable() {
var div = document.createElement('div');
document.getElementById('container').appendChild(div);
div.innerHTML = '<table><td></td></table>';
}
addTable();
addTable();
function paintInvalidationTest() {
addTable();
}
</script>
</body>
</html>