Ported to C++: Filter_CustomCSS