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

Fixes #14785
Ref #13754
Ref badcd1b6f301e6253405f17759c1270549a34e12
Support: Reduce size

Ref a7ea12a9a7c696a14455bfe4bfebf984dd329832