-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cover block: adding background-size and background-repeat properties to the block CSS #42470
Conversation
Size Change: +11 B (0%) Total Size: 1.26 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tested well for me. It takes the placement of the large parallax images back to the same as release <= 13.3, and prevents the tiling of smaller images.
Since this broke live sites, would it be possible for the fix to make next Gutenberg release? |
What?
Adding background-size and background-repeat properties to the block cover CSS when it is set to fixed background.
Why?
To make the fixed background functionality work more consistently with all the image sizes.
How?
Previously we were not applying a background-size property so the background image was using
auto
, the default value. The default value scales the background image in the corresponding direction such that its intrinsic proportions are maintained..Testing Instructions
Screenshots or screencast
Before:
After: