OLD | NEW |
| (Empty) |
1 <!-- Based on fast/table/border-collapsing/cached-change-col-border-color.html -
-> | |
2 <!-- | |
3 Calculating collapsed borders for big tables is expensive, so we cache them and
recalculate when needed. | |
4 Here we change col border color, expect that cache is invalidated and paint prod
uces expected image. | |
5 --> | |
6 <html> | |
7 <head> | |
8 <title></title> | |
9 <link rel="stylesheet" href="../../../fast/table/border-collapsing/resou
rces/cached.css"> | |
10 <script src="resources/paint-invalidation-test.js"></script> | |
11 <script type="text/javascript"> | |
12 function paintInvalidationTest() { | |
13 document.getElementById("col").style.borderColor = "yellow"; | |
14 } | |
15 </script> | |
16 </head> | |
17 <body onload="runPaintInvalidationTest()"> | |
18 <table style="border-collapse:collapse; border:1px solid blue"> | |
19 <colgroup> | |
20 <col style="border:4px solid pink" id="col"> | |
21 <col> | |
22 </colgroup> | |
23 <tbody> | |
24 <tr> | |
25 <td style="border:2px solid lime"/> | |
26 <td/> | |
27 </tr> | |
28 <tr> | |
29 <td/> | |
30 <td/> | |
31 </tr> | |
32 </tbody> | |
33 </table> | |
34 </body> | |
35 </html> | |
36 | |
OLD | NEW |