border-collapse-dynamic-cell-005.xht (1020B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test: border collapse dynamic change to rowspan cell style </title> 2 <link rel="author" title="Bernd Mielke" href="mailto:bmlk@gmx.de" /> 3 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#collapsing-borders" /> 4 <link rel="match" href="border-collapse-dynamic-cell-005-ref.xht"/> 5 <meta name="flags" content="dom" /> 6 <script type="text/javascript"> 7 function doTest(){ 8 var t1 =document.getElementById('target'); 9 t1.style.borderStyle="solid"; 10 } 11 </script> 12 <style type="text/css"> 13 td { border: 10px green outset;} 14 table {margin: 30px} 15 </style> 16 </head> 17 <body onload="doTest();"> 18 <table style="border-collapse:collapse"> 19 <tbody><tr><td>c11</td><td style="border-style:none" rowspan="3" id="target">c12</td><td>c13</td></tr> 20 <tr><td>c21</td><td>c23</td></tr> 21 <tr><td>c31</td><td>c33</td></tr> 22 </tbody></table> 23 24 </body></html>