Fixes #10492 better:
- Made more generic. Applies to "> .table" and "> .table-responsive > .table" to support td/tr background colors too and not just .table-striped
- Supports tfoot
Merge pull request #11970 from supergibbs/Better_10492_fix

Fixes #10492 better