-
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: Restore overflow: clip rule to allow border radius again #59388
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +7 B (0%) Total Size: 1.71 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.
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.
Thanks for fixing this! Yeah it shouldn't be a big deal for aspect ratio to be incompatible with an amount of content that makes it impossible to keep the aspect ratio 😅 so I'd say it's fine like this.
Thanks for the reviews, folks! I'll merge this in as it resolves the regression. If there are any objections about the change in terms of the aspect ratio block support, we can look into it as a bug (or room for enhancement) with that block support 👍 |
…#59388) * Cover Block: Restore overflow: clip rule to allow border radius again * Fully restore to prior to aspect ratio PR Co-authored-by: andrewserong <andrewserong@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: tellthemachines <isabel_brison@git.wordpress.org> Co-authored-by: luminuu <luminuu@git.wordpress.org>
I just cherry-picked this PR to the cherry-pick-wp-6-5-beta-3 branch to get it included in the next release: d9a49b4 |
Thanks for the speedy fix for this one! |
…#59388) * Cover Block: Restore overflow: clip rule to allow border radius again * Fully restore to prior to aspect ratio PR Co-authored-by: andrewserong <andrewserong@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: tellthemachines <isabel_brison@git.wordpress.org> Co-authored-by: luminuu <luminuu@git.wordpress.org>
…#59388) * Cover Block: Restore overflow: clip rule to allow border radius again * Fully restore to prior to aspect ratio PR Co-authored-by: andrewserong <andrewserong@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: tellthemachines <isabel_brison@git.wordpress.org> Co-authored-by: luminuu <luminuu@git.wordpress.org>
I just cherry-picked this PR to the release/17.8 branch to get it included in the next release: a4156a0 |
What?
Fixes #59366
Fix border radius for the Cover block by restoring the previous
overflow: clip
CSS rule.Why?
When the aspect ratio block support was introduced in #56897, it turns out the behaviour depended on a bug in Chrome that (incorrectly) allowed
overflow-x: clip
to apply rounded edges to a clipping region while still allowing the content area to expand vertically. As of Chrome122.x
that bug has been resolved, which means thatoverflow-x: clip
now results in border radius not clipping the image for the Cover block as it's expected to.This fix proposes restoring the
overflow: clip
rule for 6.5 to fix the border radius issue. The downside of doing this is that on smaller viewports, the content area of the block with an aspect ratio will not expand beyond its aspect ratio proportions. However, since aspect ratio is a new feature in 6.5, I believe it's preferable for us to restore behaviour that preserves border-radius for now.We could potentially look at further follow-ups to the aspect ratio support in 6.6.
How?
Restore
overflow: clip
rule in the Cover block.Testing Instructions
122.x
)Testing Instructions for Keyboard
Screenshots or screencast