I'm trying to extend the background colour in a table head beyond the bounds of the table. I've got it to work on the left side using th:first-child::before. I expect th:last-child::after to have mirrored behaviour, but it doesn't appear to do that.
I currently use float to take the ::before/::after out of the normal flow because th::before,th::after { position:absolute; top:0; } seems to consider body to be its parent instead of tr or thead.