It appears that the top border of any non-first row in a table
element is colored differently if that color is translucent (that is, with an alpha of 0 < α < 1
).
The first row looks fine, but the second through nth rows look darker. This only happens if the color is translucent. My suspicion is that there's some overlapping of translucent borders going on here, but I can't figure out what, since the borders are only on top.
Here's the code: http://codepen.io/chharvey/pen/qdNZdK?editors=110
Here's what it looks like compared to a div
with p
s as rows, and span
s as cells. (table
on the left, div
on the right.)
If I add the following css, the div now appears exactly the same as the table, with the buggy borders:
div {
display: table;
border-collapse: collapse;
}
p {
display: table-row;
}