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