Skip to content

Image Block: Wide width and full width are not applied correctly #53173

@t-hamano

Description

@t-hamano

Description

In WordPress 6.3, if you set the image block to wide or full width, the image will not spread properly in the editor.

This problem occurs even with the latest Gutenberg plugin enabled. Also, it seems to occur when the original size of the image is smaller than the content width; I checked the difference with WordPress 6.2, and it may be due to the width:inherit being applied in this line.

Step-by-step reproduction instructions

  • Add an image block
  • Apply Wide Width or Full Width

Screenshots, screen recording, code snippet

d049ba4cad61b27c371ab9b85cf86cc4.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

Metadata

Metadata

Assignees

Labels

[Block] ImageAffects the Image Block[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions