diff --git a/php-transformer/composer.json b/php-transformer/composer.json index b9117a266..b020fff3d 100644 --- a/php-transformer/composer.json +++ b/php-transformer/composer.json @@ -134,6 +134,7 @@ "php tests/unit/navigation-block-normalizer.php", "php tests/unit/menu-chrome-presentation-carry.php", "php tests/unit/navigation-inline-margin-carry.php", + "php tests/unit/navigation-layout-default.php", "php tests/unit/navigation-source-provenance.php", "php tests/unit/navigation-dropped-anchors.php", "php tests/unit/navigation-inert-support-children.php", diff --git a/php-transformer/src/HtmlToBlocks/HtmlCompilation.php b/php-transformer/src/HtmlToBlocks/HtmlCompilation.php index d732b76a7..452276c9e 100644 --- a/php-transformer/src/HtmlToBlocks/HtmlCompilation.php +++ b/php-transformer/src/HtmlToBlocks/HtmlCompilation.php @@ -2076,6 +2076,18 @@ private function materializeAuthorStylesheet(string $html, string $staticCss, bo // became 155x82 and menu 1005 at x=265. `max-width:100%` keeps the // block shrinkable, so a narrow viewport still hands over to core's // responsive overlay rather than overflowing the page. + // core's navigation renderer repeats the block's class list on the + // inner container, so a single authored box is painted twice: once + // on the