OLD | NEW |
| (Empty) |
1 <!-- Based on fast/table/border-collapsing/cached-change-colgroup-border-color.h
tml --> | |
2 <!-- | |
3 Calculating collapsed borders for big tables is expensive, so we cache them and
recalculate when needed. | |
4 Here we change colgroup border color, expect that cache is invalidated and paint
produces 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("colgroup").style.borderColor = "yellow"
; | |
14 } | |
15 </script> | |
16 </head> | |
17 <body onload="runPaintInvalidationTest()"> | |
18 <table style="border-collapse:collapse; border:1px solid blue"> | |
19 <colgroup style="border:4px solid pink" id="colgroup"> | |
20 <col> | |
21 <col> | |
22 </colgroup> | |
23 <colgroup> | |
24 <col> | |
25 </colgroup> | |
26 <tbody> | |
27 <tr> | |
28 <td style="border:2px solid lime"/> | |
29 <td/> | |
30 <td/> | |
31 </tr> | |
32 <tr> | |
33 <td/> | |
34 <td/> | |
35 <td/> | |
36 </tr> | |
37 </tbody> | |
38 </table> | |
39 </body> | |
40 </html> | |
41 | |
OLD | NEW |