Index: lib/redmine/wiki_formatting/textile/redcloth3.rb =================================================================== --- lib/redmine/wiki_formatting/textile/redcloth3.rb (revision 17157) +++ lib/redmine/wiki_formatting/textile/redcloth3.rb (working copy) @@ -514,7 +514,7 @@ atts end - STYLES_RE = /^(color|width|height|border|background|padding|margin|font|text|float)(-[a-z]+)*:\s*((\d+%?|\d+px|\d+(\.\d+)?em|#[0-9a-f]+|[a-z]+)\s*)+$/i + STYLES_RE = /^(color|(min-|max-)?+(width|height)|border|background|padding|margin|font|text|float)(-[a-z]+)*:\s*((\d+%?|\d+px|\d+(\.\d+)?em|#[0-9a-f]+|[a-z]+)\s*)+$/i def sanitize_styles(str) styles = str.split(";").map(&:strip)