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