| <html> |
| <head> |
| <title>Add/remove "display: none" to table elements (bug 3702)</title> |
| <style type="text/css"> |
| .navbar{display: none;} |
| </style> |
| </head> |
| <body onLoad="javascript:document.styleSheets[0].deleteRule(0);"> |
| <p>Both rows should have the same width (725px).</p> |
| <table cellpadding="0" cellspacing="0" style="table-layout: fixed; width: 725px;"> |
| <tr id='first_row'> |
| <td class="navbar" style="background-color: LawnGreen;">1</td> |
| <td style="background-color: Green;">1+</td> |
| <td class="navbar" style="background-color: Cyan;">2</td> |
| <td style="background-color: DarkCyan;">2+</td> |
| <td class="navbar" style="background-color: Yellow;">3</td> |
| <td style="background-color: Gold;">3+</td> |
| <td class="navbar" style="background-color: Orange;">4</td> |
| <td style="background-color: DarkOrange;">4+</td> |
| </tr> |
| <tr valign="top"> |
| <td> </td> |
| </tr> |
| </table> |
| <table cellpadding="0" cellspacing="0" style="table-layout: fixed; width: 725px;"> |
| <tr> |
| <td style="background-color: LawnGreen;">1</td> |
| <td style="background-color: Cyan;">2</td> |
| <td style="background-color: Yellow;">3</td> |
| <td style="background-color: Orange;">4</td> |
| </tr> |
| </table> |
| <button onClick="javascript:document.styleSheets[0].deleteRule(0);">show</button> |
| <button onClick="javascript:document.styleSheets[0].insertRule('.navbar {display: none;}', 0);">hide</button> |
| </body> |
| </html> |