gutenberg
gutenberg copied to clipboard
Global Styles: Border customisation is not applied correctly
Description
With #47630, the border customisation for the Avatar block is applied correctly at the block level. However, the block will not be styled correctly if it's styled in Global Styles.

Step-by-step reproduction instructions
- Add an avatar block,
- Go to Styles tab and Blocks > Avatar > Border
- Try adding a border and specify the border-radius.
Screenshots, screen recording, code snippet
No response
Environment info
- WP 6.1.1
- Gutenberg Trunk
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
+1 This doesn't work as expected.
The exact same is true of styling the search block border via global styles — works correctly at the block level but not global styles:
| Block | Global Styles |
|---|---|
![]() |
![]() |
Border and border radius for the Avatar Block do not work for me. Works on the back-end but the styles do not get carried across to the markup on the front-end.

