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