From f764be498ceb34149a530f8d1f8d48046c859da8 Mon Sep 17 00:00:00 2001 From: Matias Benedetto Date: Thu, 21 Jul 2022 12:29:50 -0300 Subject: [PATCH] Cover block: adding background-size and background-repeat properties to the block CSS (#42470) --- packages/block-library/src/cover/style.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/cover/style.scss b/packages/block-library/src/cover/style.scss index 619cad46c1b5a3..0338e0ce904fad 100644 --- a/packages/block-library/src/cover/style.scss +++ b/packages/block-library/src/cover/style.scss @@ -1,7 +1,6 @@ .wp-block-cover-image, .wp-block-cover { position: relative; - background-size: cover; background-position: center center; min-height: 430px; display: flex; @@ -200,6 +199,8 @@ video.wp-block-cover__video-background { &.has-parallax { background-attachment: fixed; + background-size: cover; + background-repeat: no-repeat; // Mobile Safari does not support fixed background attachment properly. // See also https://stackoverflow.com/questions/24154666/background-size-cover-not-working-on-ios