getRuleSanitizers(); $newRules['@media'] = new MediaAtRuleSanitizer( $factory->cssMediaQueryList() ); $newRules['@media']->setRuleSanitizers( $newRules ); $sanitizer->setRuleSanitizers( $newRules ); } $extended = new TemplateStylesExtender(); $extender = new StylePropertySanitizerExtender( $matcherFactory ); if ( TemplateStylesExtender::getConfigValue( 'TemplateStylesExtenderEnableCssVars', true ) === true ) { $extended->addVarSelector( $propertySanitizer, $matcherFactory ); } $extended->addImageRendering( $extender ); $extended->addRuby( $extender ); $extended->addPointerEvents( $extender ); $extended->addScrollMarginProperties( $extender, $matcherFactory ); $extended->addAspectRatio( $extender, $matcherFactory ); $propertySanitizer->setKnownProperties( $extender->getKnownProperties() ); } }