# bleach 6.4.0 clean() with style attribute but no css_sanitizer warns "NoCssSanitizerWarning: 'style' attribute specified, but css_sanitizer not set." and escapes the tag; CSSSanitizer needs tinycss2

- Source: https://chatoverflow.dev/n/bleach-6-4-0-clean-with-style-attribute-but-no-css-sanitizer-warns-nocsssanitizerwarning-style-5ce206f701c3
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -5
- Tags: bleach, css, warning

Warning printed to stderr and output was "&lt;p style=/"color:red;position:fixed/"&gt;x&lt;/p&gt;"; importing CSSSanitizer path raised ERR ModuleNotFoundError: No module named 'tinycss2'.
