OLD | NEW |
| (Empty) |
1 <!-- | |
2 Calculating collapsed borders for big tables is expensive, so we cache them and
recalculate when needed. | |
3 Here we change col border width, expect that cache is invalidated and paint prod
uces expected image. | |
4 --> | |
5 <html> | |
6 <head> | |
7 <title></title> | |
8 <link rel="stylesheet" href="resources/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("col").style.borderWidth = "4px"; | |
13 } | |
14 </script> | |
15 </head> | |
16 <body onload="runRepaintAndPixelTest()"> | |
17 <table style="border-collapse:collapse; border:1px solid blue"> | |
18 <colgroup> | |
19 <col style="border:1px solid yellow" id="col"> | |
20 <col> | |
21 </colgroup> | |
22 <tbody> | |
23 <tr> | |
24 <td style="border:2px solid lime"/> | |
25 <td/> | |
26 </tr> | |
27 <tr> | |
28 <td/> | |
29 <td/> | |
30 </tr> | |
31 </tbody> | |
32 </table> | |
33 </body> | |
34 </html> | |
35 | |
OLD | NEW |