ENH: omit CSSStyle rules for hidden table elements (#43619)
- [x] closes #43619
- [x] tests added / passed (but canceled due to another error)
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry

I couldn't run all tests, because of the following problem, which isn't related to my changes:
```
pandas/tests/io/test_orc.py terminate called after throwing an instance of 'orc::TimezoneError'
  what():  Can't open /etc/localtime
Fatal Python error: Aborted
``` 