OLD | NEW |
| (Empty) |
1 <!-- Based on fast/table/border-collapsing/cached-cell-append.html --> | |
2 <!-- | |
3 Calculating collapsed borders for big tables is expensive, so we cache them and
recalculate when needed. | |
4 Here we append new cell, expect that cache is invalidated and paint produces exp
ected 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 newCell = document.createElement("td"); | |
14 newCell.style.borderLeftWidth = "6px"; | |
15 newCell.style.borderLeftStyle = "solid"; | |
16 newCell.style.borderLeftColor = "yellow"; | |
17 document.getElementById("row").appendChild(newCell); | |
18 } | |
19 </script> | |
20 </head> | |
21 <body onload="runPaintInvalidationTest()"> | |
22 <table style="border-collapse:collapse; border:2px solid blue"> | |
23 <tr id="row"> | |
24 <td style="border:4px solid lime"/> | |
25 </tr> | |
26 </table> | |
27 </body> | |
28 </html> | |
29 | |
OLD | NEW |