Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / add-table-overpaint.html
blob3b9604d37232c9e44a6eef69be663099e98ed9a4
1 <!-- Based on fast/repaint/add-table-overpaint.html -->
3 <!DOCTYPE html>
4 <html>
5 <body onload="runPaintInvalidationTest()" style="margin: 0px">
6 <script src="resources/paint-invalidation-test.js"></script>
7 <style>
8 td {
9 height: 150px;
10 width: 150px;
11 background-color: blue;
13 </style>
14 <!-- This test adds 3 tables do the document. Adding the 3rd table should not cause the first table to repaint. -->
15 <div id="container"></div>
16 <script>
17 function addTable() {
18 var div = document.createElement('div');
19 document.getElementById('container').appendChild(div);
20 div.innerHTML = '<table><td></td></table>';
22 addTable();
23 addTable();
24 window.expectedPaintInvalidationObjects = [
25 "LayoutBlockFlow DIV",
26 "LayoutTable TABLE",
27 "LayoutTableCell TD",
28 "LayoutTableSection TBODY",
29 "LayoutTableRow TR",
30 "LayoutTableCell TD",
32 function paintInvalidationTest() {
33 addTable();
35 </script>
36 </body>
37 </html>