I am attempting to conceal some columns in my HTML code by using MDN colgroup and col elements, and manipulating the styles of the columns.
The <td>
containing the text 'visible' is visible in all browsers (which is good), but the one with the text 'hidden' is only visible in Chrome (not so good) and hidden in Firefox and Edge (good).
Here is the concise code snippet that reproduces the issue:
<!doctype html>
<html>
<head>
<title>CSS Example</title>
<style type='text/css'>
col.visible {}
col.hidden { visibility:collapse; }
</style>
</head>
<body>
<table border='1'>
<colgroup>
<col class='visible'>
<col class='hidden'>
<tbody>
<tr>
<td>visible</td>
<td>hidden</td>
</tr>
</tbody>
</colgroup>
</table>
</body>
</html>