Skip to content

Commit

Permalink
Revert "remove border, use padding top/bottom (#66012)"
Browse files Browse the repository at this point in the history
This reverts commit 126acf2.
  • Loading branch information
ajlende committed Oct 16, 2024
1 parent 95c10e8 commit 919fce2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/block-editor/src/components/iframe/content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,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.
Expand Down

0 comments on commit 919fce2

Please sign in to comment.