custom_css). * Emits the canonical Number PropValue from generate(). */ class Number_Property_Converter extends Property_Converter_Base { private string $property; public function __construct( string $property ) { $this->property = $property; } protected function get_supported_properties(): array { return [ $this->property ]; } protected function do_convert( Conversion_Context $context, array $rule ): bool { $value = trim( $rule['value'] ); if ( ! is_numeric( $value ) ) { return false; } $context->set_prop( $this->property, Number_Prop_Type::generate( $value + 0 ) ); return true; } }