| OLD | NEW |
| (Empty) |
| 1 <!-- Based on fast/table/border-collapsing/cached-change-cell-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 cell border color, expect that cache is invalidated and paint pro
duces 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("foo").style.borderColor = "lime"; | |
| 14 } | |
| 15 </script> | |
| 16 </head> | |
| 17 <body onload="runPaintInvalidationTest()"> | |
| 18 <table style="border-collapse:collapse; border:2px solid blue"> | |
| 19 <tr> | |
| 20 <td style="border:4px solid pink" id="foo"/> | |
| 21 <td style="border:1px solid black"/> | |
| 22 </tr> | |
| 23 </table> | |
| 24 </body> | |
| 25 </html> | |
| 26 | |
| OLD | NEW |