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 tbody border width, expect that cache is invalidated and paint pr
oduces expected image. | 3 Here we change tbody border width, expect that cache is invalidated and paint pr
oduces 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("tbody").style.borderWidth = "4px"; | |
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 <tbody style="border:1px solid yellow" id="tbody"> | 12 <tbody style="border:4px solid yellow" id="tbody"> |
19 <tr> | 13 <tr> |
20 <td style="border:2px solid lime"/> | 14 <td style="border:2px solid lime"/> |
21 <td/> | 15 <td/> |
22 </tr> | 16 </tr> |
23 <tr> | 17 <tr> |
24 <td/> | 18 <td/> |
25 <td/> | 19 <td/> |
26 </tr> | 20 </tr> |
27 </tbody> | 21 </tbody> |
28 <tbody> | 22 <tbody> |
29 <tr> | 23 <tr> |
30 <td/> | 24 <td/> |
31 <td/> | 25 <td/> |
32 </tr> | 26 </tr> |
33 </tbody> | 27 </tbody> |
34 </table> | 28 </table> |
35 </body> | 29 </body> |
36 </html> | 30 </html> |
37 | 31 |
OLD | NEW |