Skip to content

Commit aea0232

Browse files
Rich Taborrichtaboryouknowriadndiegogetdave
authored andcommitted
remove border, use padding top/bottom (WordPress#66012)
Co-authored-by: richtabor <[email protected]> Co-authored-by: youknowriad <[email protected]> Co-authored-by: ndiego <[email protected]> Co-authored-by: getdave <[email protected]> Co-authored-by: talldan <[email protected]>
1 parent aa04ace commit aea0232

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/block-editor/src/components/iframe/content.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919

2020
background-color: $gray-300;
2121

22-
// Firefox and Safari don't render margin-bottom here and margin-bottom is needed for Chrome
23-
// layout, so we use border matching the background instead of margins.
24-
border: calc(#{$frame-size} / #{$scale}) solid $gray-300;
22+
padding: calc(#{$frame-size} / #{$scale}) 0;
2523

2624
// Chrome seems to respect that transform scale shouldn't affect the layout size of the element,
2725
// so we need to adjust the height of the content to match the scale by using negative margins.

0 commit comments

Comments
 (0)