property = $property; } protected function get_supported_properties(): array { return [ $this->property ]; } protected function do_convert( Conversion_Context $context, array $rule ): bool { $color = trim( $rule['value'] ); if ( 1 !== count( Css_Token_Splitter::split_by_whitespace( $color ) ) ) { return false; } $context->set_prop( $this->property, Color_Prop_Type::generate( $color ) ); return true; } }