Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / cached-change-table-border-width.html
blob32f59457010de9503430eb99e426e8a78ad877f2
1 <!-- Based on fast/table/border-collapsing/cached-change-table-border-width.html -->
2 <!--
3 Calculating collapsed borders for big tables is expensive, so we cache them and recalculate when needed.
4 Here we change table border width, expect that cache is invalidated and paint produces expected image.
5 -->
6 <html>
7 <head>
8 <title></title>
9 <link rel="stylesheet" href="../../../fast/table/border-collapsing/resources/cached.css">
10 <script src="resources/paint-invalidation-test.js"></script>
11 <script type="text/javascript">
12 window.expectedPaintInvalidationObjects = [
13 "LayoutTableCell TD",
14 "LayoutTable TABLE id='tbl'",
15 "LayoutTableSection TBODY",
16 "LayoutTableRow TR",
17 "LayoutTableCell TD",
19 function paintInvalidationTest() {
20 document.getElementById("tbl").style.borderWidth = "4px";
22 </script>
23 </head>
24 <body onload="runPaintInvalidationTest()">
25 <table style="border-collapse:collapse; border:1px solid blue" id="tbl">
26 <tr>
27 <td style="border:2px solid lime"/>
28 </tr>
29 </table>
30 </body>
31 </html>