// Calculates fluid typography rules where available.
if ( 'font-size' ===
$css_property ) { /*
* wp_get_typography_font_size_value() will check
* if fluid typography has been activated and also
* whether the incoming value can be converted to a fluid value.
* Values that already have a clamp() function will not pass the test,
* and therefore the original $value will be returned.
*/
$value =
wp_get_typography_font_size_value( array
( 'size' =>
$value ) );
} $declarations[] = array
( 'name' =>
$css_property,
'value' =>
$value,
);
} // If a variable value is added to the root, the corresponding property should be removed.
foreach ( $root_variable_duplicates as $duplicate ) { $discard =
array_search( $duplicate,
array_column( $declarations, 'name'
), true
);