1 <!-- Based on fast/table/border-collapsing/cached-change-colgroup-border-width.html -->
3 Calculating collapsed borders for big tables is expensive, so we cache them and recalculate when needed.
4 Here we change colgroup border width, 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
= [
23 "LayoutTableCol COLGROUP id='colgroup'",
29 function paintInvalidationTest() {
30 document
.getElementById("colgroup").style
.borderWidth
= "4px";
34 <body onload=
"runPaintInvalidationTest()">
35 <table style=
"border-collapse:collapse; border:1px solid blue">
36 <colgroup style=
"border:1px solid yellow" id=
"colgroup">
45 <td style=
"border:2px solid lime"/>