Image block box-shadows conflict with border-radius #57611
Labels
[Block] Image
Affects the Image Block
[Package] Style Engine
/packages/style-engine
[Type] Bug
An existing feature does not function as intended
Description
I'm using the relatively new "shadows" option in
theme.json
, created some shadow presets, and tried applying a default shadow to image blocks viatheme.json
>styles
>blocks
>core/image
>shadow
, where I also specify a default border-radius, and found that the shadow gets applied to the wrappingfigure
element, while the border-radius gets applied to the nestedimg
element, which causes a visual issue where the shadow isn't "in sync" with the border radius -- screenshot (most noticeable on bottom corners):Code:
Work-around:
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
WP v6.4.2, not using Gutenberg plugin
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
The text was updated successfully, but these errors were encountered: