From b52cf1fca6d29df62a2dbbb62955ae578efa2c8a Mon Sep 17 00:00:00 2001 From: Rich Tabor Date: Thu, 10 Oct 2024 14:52:20 +0200 Subject: [PATCH] remove border, use padding top/bottom (#66012) Co-authored-by: richtabor Co-authored-by: youknowriad Co-authored-by: ndiego Co-authored-by: getdave Co-authored-by: talldan --- 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.