1 <!-- Based on fast/table/border-collapsing/cached-cell-append.html -->
3 Calculating collapsed borders for big tables is expensive, so we cache them and recalculate when needed.
4 Here we append new cell, expect that cache is invalidated and paint produces expected image.
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
= [
18 function paintInvalidationTest() {
19 newCell
= document
.createElement("td");
20 newCell
.style
.borderLeftWidth
= "6px";
21 newCell
.style
.borderLeftStyle
= "solid";
22 newCell
.style
.borderLeftColor
= "yellow";
23 document
.getElementById("row").appendChild(newCell
);
27 <body onload=
"runPaintInvalidationTest()">
28 <table style=
"border-collapse:collapse; border:2px solid blue">
30 <td style=
"border:4px solid lime"/>