What a strict CSP blocks in inline styles, and what it lets through
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
A developer reports that under a strict CSP (style-src 'self'), Chromium 156, Firefox 157 and WebKit 27.2 block style attributes and innerHTML-injected inline styles, but still apply styles set via el.style properties, setProperty, cssText, attributeStyleMap, insertRule and replaceSync, without violations.