From 73988cb783360a123bb7065d4f93b3fc9c9fe41d Mon Sep 17 00:00:00 2001 From: Chris Huber Date: Tue, 1 Sep 2026 12:46:45 -0400 Subject: [PATCH 1/2] Preserve native animation and editor layout topology --- .../src/HtmlToBlocks/HtmlTransformer.php | 8 +++++ .../Style/RevealAnimationSettler.php | 10 +------ ...tifact-inline-style-extraction-base64.json | 3 +- .../artifact-inline-style-extraction.json | 3 +- .../tests/unit/custom-block-generator.php | 2 ++ .../tests/unit/reveal-animation-settling.php | 30 ++++++------------- 6 files changed, 24 insertions(+), 32 deletions(-) diff --git a/php-transformer/src/HtmlToBlocks/HtmlTransformer.php b/php-transformer/src/HtmlToBlocks/HtmlTransformer.php index adc0bd02..b48f9911 100644 --- a/php-transformer/src/HtmlToBlocks/HtmlTransformer.php +++ b/php-transformer/src/HtmlToBlocks/HtmlTransformer.php @@ -2032,6 +2032,14 @@ private function materializeAuthorStylesheet(string $html, string $staticCss, bo $beforeAuthorCssParts[] = ':root :where(.' . self::CSS_OWNED_LAYOUT_CLASS . ')>.block-editor-inner-blocks,' . ':root :where(.' . self::CSS_OWNED_LAYOUT_CLASS . ')>.block-editor-inner-blocks>.block-editor-block-list__layout{display:contents}'; } + $layoutShellBlockName = $this->generatedBlocks()->blockName('layout-shell'); + if ( str_contains($serializedBlocks, '