position: 'sticky'
landed in Chrome 56, but it makes the border invisible in certain circumstances.
Consider the following example:
table {
border-collapse: collapse;
}
thead {
position: sticky;
top: 0;
}
th {
background-color: #fff;
border-right: 5px solid red;
}
<table>
<thead>
<tr>
<th>First</th>
<th>Second</th>
<th>Third</th>
</tr>
</thead>
</table>
In Chrome 56.0.2924.76, only the last <th>
's border is visible, and this is only when <th>
has a background-color
specified.
Is this a bug in Chrome?