From f235a2e53def0a8b3b2cd6bde009f6264caa22e3 Mon Sep 17 00:00:00 2001 From: Jerry Jones Date: Thu, 10 Oct 2024 09:15:13 -0500 Subject: [PATCH] Revert "remove border, use padding top/bottom (#66012)" This reverts commit b52cf1fca6d29df62a2dbbb62955ae578efa2c8a. --- packages/block-editor/src/components/iframe/content.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/iframe/content.scss b/packages/block-editor/src/components/iframe/content.scss index 9e908da09c84f..52210fb1e241b 100644 --- a/packages/block-editor/src/components/iframe/content.scss +++ b/packages/block-editor/src/components/iframe/content.scss @@ -19,7 +19,9 @@ background-color: $gray-300; - padding: calc(#{$frame-size} / #{$scale}) 0; + // Firefox and Safari don't render margin-bottom here and margin-bottom is needed for Chrome + // layout, so we use border matching the background instead of margins. + border: calc(#{$frame-size} / #{$scale}) solid $gray-300; // Chrome seems to respect that transform scale shouldn't affect the layout size of the element, // so we need to adjust the height of the content to match the scale by using negative margins.