Why does tr { display:initial }
cause the td colspan=5
to be ignored?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Test</title>
<style>
* { border-style: solid; }
</style>
</head>
<body>
<table>
<tr> <td>×</td> <td>×</td> <td>×</td> <td>×</td> <td>×</td> </tr>
<tr> <td colspan="5">cs=5</td> </tr>
<tr> <td>×</td> <td>×</td> <td>×</td> <td>×</td> <td>×</td> </tr>
<tr style="display: initial"> <td colspan="5">cs=5,d=i</td> </tr>
<tr> <td>×</td> <td>×</td> <td>×</td> <td>×</td> <td>×</td> </tr>
</table>
</body>
</html>
"inherit" has the same wrong effect.
The real situation is attempting to use JavaScript to toggle the display between "none" and "initial".