Playlist: Clip content to respect border-radius#76146
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: +77 B (0%) Total Size: 6.87 MB
ℹ️ View Unchanged
|
When the playlist block has a border-radius set, child content (waveform player, tracklist) bleeds outside the rounded corners. Add overflow: clip (with overflow: hidden fallback) to ensure content is clipped to the block's border-radius. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
a2d6c68 to
2df85b0
Compare
|
Flaky tests detected in 2df85b0. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/22675173260
|


What?
Add
overflow: clipto the playlist block so content is clipped to the border-radius.Why?
When a border-radius is applied to the playlist block, child content (waveform player, tracklist) bleeds outside the rounded corners.
How?
Adds
overflow: clip(withoverflow: hiddenas a fallback for older browsers) to.wp-block-playlistinstyle.scss. This follows the same pattern used by the cover block.Testing Instructions
Testing Instructions for Keyboard
No UI interaction changes — this is a CSS-only fix. Standard keyboard navigation should work as before.
Screenshots or screencast
|