@@ -2131,11 +2131,11 @@ private function process_css_declaration_block( RuleSet $ruleset, CSSList $css_l
21312131 $ vendorless_property_name = preg_replace ( '/^-\w+-/ ' , '' , $ property ->getRule () );
21322132 if ( ! in_array ( $ vendorless_property_name , $ options ['property_whitelist ' ], true ) ) {
21332133 $ error = [
2134- 'code ' => self ::CSS_SYNTAX_INVALID_PROPERTY ,
2135- 'property_name ' => $ property ->getRule (),
2136- 'property_value ' => $ property ->getValue (),
2137- 'type ' => AMP_Validation_Error_Taxonomy::CSS_ERROR_TYPE ,
2138- 'spec_name ' => $ options ['spec_name ' ],
2134+ 'code ' => self ::CSS_SYNTAX_INVALID_PROPERTY ,
2135+ 'css_property_name ' => $ property ->getRule (),
2136+ 'css_property_value ' => $ property ->getValue (),
2137+ 'type ' => AMP_Validation_Error_Taxonomy::CSS_ERROR_TYPE ,
2138+ 'spec_name ' => $ options ['spec_name ' ],
21392139 ];
21402140 $ sanitized = $ this ->should_sanitize_validation_error ( $ error );
21412141 if ( $ sanitized ) {
@@ -2149,11 +2149,11 @@ private function process_css_declaration_block( RuleSet $ruleset, CSSList $css_l
21492149 $ properties = $ ruleset ->getRules ( $ illegal_property_name );
21502150 foreach ( $ properties as $ property ) {
21512151 $ error = [
2152- 'code ' => self ::CSS_SYNTAX_INVALID_PROPERTY_NOLIST ,
2153- 'property_name ' => $ property ->getRule (),
2154- 'property_value ' => (string ) $ property ->getValue (),
2155- 'type ' => AMP_Validation_Error_Taxonomy::CSS_ERROR_TYPE ,
2156- 'spec_name ' => $ options ['spec_name ' ],
2152+ 'code ' => self ::CSS_SYNTAX_INVALID_PROPERTY_NOLIST ,
2153+ 'css_property_name ' => $ property ->getRule (),
2154+ 'css_property_value ' => (string ) $ property ->getValue (),
2155+ 'type ' => AMP_Validation_Error_Taxonomy::CSS_ERROR_TYPE ,
2156+ 'spec_name ' => $ options ['spec_name ' ],
21572157 ];
21582158 $ sanitized = $ this ->should_sanitize_validation_error ( $ error );
21592159 if ( $ sanitized ) {
@@ -2397,11 +2397,11 @@ private function process_css_keyframes( KeyFrame $css_list, $options ) {
23972397 $ vendorless_property_name = preg_replace ( '/^-\w+-/ ' , '' , $ property ->getRule () );
23982398 if ( ! in_array ( $ vendorless_property_name , $ options ['property_whitelist ' ], true ) ) {
23992399 $ error = [
2400- 'code ' => self ::CSS_SYNTAX_INVALID_PROPERTY ,
2401- 'property_name ' => $ property ->getRule (),
2402- 'property_value ' => (string ) $ property ->getValue (),
2403- 'type ' => AMP_Validation_Error_Taxonomy::CSS_ERROR_TYPE ,
2404- 'spec_name ' => $ options ['spec_name ' ],
2400+ 'code ' => self ::CSS_SYNTAX_INVALID_PROPERTY ,
2401+ 'css_property_name ' => $ property ->getRule (),
2402+ 'css_property_value ' => (string ) $ property ->getValue (),
2403+ 'type ' => AMP_Validation_Error_Taxonomy::CSS_ERROR_TYPE ,
2404+ 'spec_name ' => $ options ['spec_name ' ],
24052405 ];
24062406 $ sanitized = $ this ->should_sanitize_validation_error ( $ error );
24072407 if ( $ sanitized ) {
@@ -2447,11 +2447,11 @@ private function transform_important_qualifiers( RuleSet $ruleset, CSSList $css_
24472447 $ ruleset ->removeRule ( $ property ->getRule () );
24482448 } else {
24492449 $ error = [
2450- 'code ' => self ::CSS_SYNTAX_INVALID_IMPORTANT ,
2451- 'type ' => AMP_Validation_Error_Taxonomy::CSS_ERROR_TYPE ,
2452- 'property_name ' => $ property ->getRule (),
2453- 'property_value ' => $ property ->getValue (),
2454- 'spec_name ' => $ options ['spec_name ' ],
2450+ 'code ' => self ::CSS_SYNTAX_INVALID_IMPORTANT ,
2451+ 'type ' => AMP_Validation_Error_Taxonomy::CSS_ERROR_TYPE ,
2452+ 'css_property_name ' => $ property ->getRule (),
2453+ 'css_property_value ' => $ property ->getValue (),
2454+ 'spec_name ' => $ options ['spec_name ' ],
24552455 ];
24562456 $ sanitized = $ this ->should_sanitize_validation_error ( $ error );
24572457 if ( $ sanitized ) {
0 commit comments