Skip to content

Image Block: Resize container outline does not match block when border is applied #69316

@t-hamano

Description

@t-hamano

Description

This problem appears to have first appeared in 6.7. Let's figure out where the regression occurred and fix it.

Step-by-step reproduction instructions

Insert an Image block.

  • Apply a border
  • Make sure the image does not match the outline of the resize container

Screenshots, screen recording, code snippet

WordPress 6.6, 6.5

https://playground.wordpress.net/?wp=6.6
https://playground.wordpress.net/?wp=6.5

This issue does not exist.

411da13faa813035b46a06298d1e6419.mp4

WordPress 6.7, Latest Gutenberg

https://playground.wordpress.net/?wp=6.7
https://playground.wordpress.net/?wp=6.7&plugin=gutenberg

This issue occurs.

afff56ddef444b7a42f3a9acf84c2c71.mp4

Environment info

No response

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] ImageAffects the Image Block[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions