Apply table cell styles in tfoot not just thead & tbody.

This is a regression from 2.3 as the 2.3 styling didn't scope the `th` and `td` styles to anything other than that they were inside a tag with `.table`. In 3.0 they're now scoped to `thead` and `tbody`, but `tfoot` isn't currently included.