Support: Skip style-based tests when element.style is undefined

Fixes #14785
Ref #13754
Ref badcd1b6f301e6253405f17759c1270549a34e12