-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Labels
[Plugin] Enhanced Responsive ImagesIssues for the Enhanced Responsive Images plugin (formerly Auto Sizes)Issues for the Enhanced Responsive Images plugin (formerly Auto Sizes)[Type] BugAn existing feature is brokenAn existing feature is broken
Description
Summary
When the Image block is set to center alignment, it is constrained by its intrinsic width. However, it should instead be constrained by the contentSize as specified in the CSS.
When image block sets with the center alignment it constrained by contentSize but per current implementation it constrained by image width that needs to be correct.
Core CSS that apply when center alignment sets:
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
max-width: var(--wp--style--global--content-size);
margin-left: auto !important;
margin-right: auto !important;
}Steps to Reproduce:
- Insert an Image block into a post or page.
- Set the image alignment to
center. - Observe that the image width is not properly constrained by the contentSize defined in the theme.
Metadata
Metadata
Assignees
Labels
[Plugin] Enhanced Responsive ImagesIssues for the Enhanced Responsive Images plugin (formerly Auto Sizes)Issues for the Enhanced Responsive Images plugin (formerly Auto Sizes)[Type] BugAn existing feature is brokenAn existing feature is broken
Type
Projects
Status
Done 😃
