` only — never on the generated `
` pane. When the matched
diff --git a/php-transformer/src/HtmlToBlocks/Style/EngineSupportCss.php b/php-transformer/src/HtmlToBlocks/Style/EngineSupportCss.php
index d58490d4e..86b94347e 100644
--- a/php-transformer/src/HtmlToBlocks/Style/EngineSupportCss.php
+++ b/php-transformer/src/HtmlToBlocks/Style/EngineSupportCss.php
@@ -149,6 +149,11 @@ public function beforeAuthorCss(string $serializedBlocks): array
$parts[] = $emptyParagraph . '{line-height:0}'
. $emptyParagraph . '>[data-rich-text-placeholder]{display:none}';
}
+ if ( str_contains($serializedBlocks, SourceBlockAttributeProjector::SYNTHETIC_FILL_VIDEO_FIGURE_CLASS) ) {
+ // The injected figure must pass the source's percentage height
+ // through to its original containing block, not create an auto box.
+ $parts[] = ':root :where(figure.' . SourceBlockAttributeProjector::SYNTHETIC_FILL_VIDEO_FIGURE_CLASS . '){width:100%;height:100%;margin:0}';
+ }
if ( str_contains($serializedBlocks, '