Remove inline styles that break plots in strict CSP setups [#7109], with thanks to @martian111 for the contribution!