getAttribute( 'style' ); if ( $block['attrs']['style']['border'] ?? null ) { $styles['border-width'] = $block['attrs']['style']['border']['width'] ?? null; $styles['border-style'] = $block['attrs']['style']['border']['style'] ?? null; $styles['border-color'] = $block['attrs']['style']['border']['color'] ?? null; $styles['border-radius'] = $block['attrs']['style']['border']['radius'] ?? null; } $gap = $block['attrs']['style']['spacing']['blockGap'] ?? null; if ( $gap ) { $styles['--wp--style--block-gap'] = format_custom_property( $gap ); } $div->setAttribute( 'style', ( $style ? $style . ';' : '' ) . css_array_to_string( $styles ) ); return str_replace( [ '
' ], [ '' ], $dom->saveHTML() ); }