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