OLD | NEW |
| (Empty) |
1 <!-- Based on fast/table/border-collapsing/cached-change-tbody-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 tbody border width, expect that cache is invalidated and paint pr
oduces 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("tbody").style.borderWidth = "4px"; | |
14 } | |
15 </script> | |
16 </head> | |
17 <body onload="runPaintInvalidationTest()"> | |
18 <table style="border-collapse:collapse; border:1px solid blue"> | |
19 <tbody style="border:1px solid yellow" id="tbody"> | |
20 <tr> | |
21 <td style="border:2px solid lime"/> | |
22 <td/> | |
23 </tr> | |
24 <tr> | |
25 <td/> | |
26 <td/> | |
27 </tr> | |
28 </tbody> | |
29 <tbody> | |
30 <tr> | |
31 <td/> | |
32 <td/> | |
33 </tr> | |
34 </tbody> | |
35 </table> | |
36 </body> | |
37 </html> | |
38 | |
OLD | NEW |