| @@ -40,9 +40,12 @@ | ||
| 40 | 40 | public static function get_css( $attribute_value, $property = '', $device = '' ) { |
| 41 | 41 | if ( empty( $attribute_value ) ) { |
| 42 | 42 | return []; |
| 43 | 43 | } |
| 44 | - $default_attar_value = self::get_attribute_default_value( (bool) $device ); | |
| 44 | + // responsive_defaults(), not get_attribute_default_value( true ): the | |
| 45 | + // compilers also pass custom-breakpoint suffixes and the phantom probe, | |
| 46 | + // which the plain responsive defaults have no keys for. | |
| 47 | + $default_attar_value = $device ? self::responsive_defaults() : self::get_attribute_default_value( false ); | |
| 45 | 48 | $value = wp_parse_args( $attribute_value, $default_attar_value ); |
| 46 | 49 | $css = []; |
| 47 | 50 | |
| 48 | 51 | if ( '' !== $value[ 'strokeWidth' . $device ] ) { |