childNodes && isset( $dom->childNodes[0] ) ? $dom->childNodes[0] : false; if ( $first ) { $style = $first->getAttribute( 'style' ); $style .= ';--wp--style--block-gap:' . $block['attrs']['style']['spacing']['blockGap']; $first->setAttribute( 'style', $style ); $content = $dom->saveHTML(); } } return $content; }