From e73856b816ab796b8294fcf963c0adf367974245 Mon Sep 17 00:00:00 2001 From: Rich Tabor Date: Thu, 10 Oct 2024 12:20:24 +0200 Subject: [PATCH] remove border, use padding top/bottom --- packages/block-editor/src/components/iframe/content.scss | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/block-editor/src/components/iframe/content.scss b/packages/block-editor/src/components/iframe/content.scss index 52210fb1e241b6..9e908da09c84f0 100644 --- a/packages/block-editor/src/components/iframe/content.scss +++ b/packages/block-editor/src/components/iframe/content.scss @@ -19,9 +19,7 @@ background-color: $gray-300; - // 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; + padding: calc(#{$frame-size} / #{$scale}) 0; // 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.