From 2e43198d1adfc90126fef5586bb9c37c7a4124f3 Mon Sep 17 00:00:00 2001 From: Greg Sullivan Date: Fri, 26 Jul 2019 00:45:31 -0700 Subject: [PATCH] Fix aspect ratio typo and recalculate padding in embed block CSS (#16573) --- packages/block-library/src/embed/style.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/embed/style.scss b/packages/block-library/src/embed/style.scss index 6f3478f3bb1089..5409085faf0206 100644 --- a/packages/block-library/src/embed/style.scss +++ b/packages/block-library/src/embed/style.scss @@ -63,8 +63,8 @@ padding-top: 100%; // 1 / 1 * 100 } - &.wp-embed-aspect-9-6 .wp-block-embed__wrapper::before { - padding-top: 66.66%; // 6 / 9 * 100 + &.wp-embed-aspect-9-16 .wp-block-embed__wrapper::before { + padding-top: 177.78%; // 16 / 9 * 100 } &.wp-embed-aspect-1-2 .wp-block-embed__wrapper::before {