safecss_filter_attr doesn't allow rgb() in inline styles
|Reported by:||joehoyle||Owned by:|
I thought there should be a ticket somewhere, but I couldn't find it!
So, safecss_filter_attr (which is used in wp_kses etc, does not allow inline styles that include rgba() etc, like his:
<span style="background: rgb(0,0,0)"></span>
I am not sure if this is intended, though not sure why it would be, there is a comment in safecss_filter_attr
if ( preg_match( '%[\\(&=}]|/\*%', $css ) ) // remove any inline css containing \ ( & } = or comments