Skip to content

Incorporate layout constraints from ancestor blocks into the sizes calculations #1511

@joemcgill

Description

@joemcgill

As outlined in #760, the initial work for accurately setting the sizes attribute for image and cover blocks has been released through the Enhanced Responsive Images plugin. While the current implementation effectively handles individual image blocks, it does not account for images constrained by other ancestor blocks. This issue aims to address this issue by focusing on multiple block types, including column, group, row, and stack blocks (alignments only). Enhancements for grid blocks are also being considered (though they are of lower priority due to their complexity and recent introduction).

The primary goal is to improve the sizes attribute across these block types to ensure images are displayed with the correct sizes for optimal rendering across different screen sizes.

Metadata

Metadata

Labels

[Plugin] Enhanced Responsive ImagesIssues for the Enhanced Responsive Images plugin (formerly Auto Sizes)[Type] EpicA high-level project / epic that will encompass several sub-issues

Projects

Status

In Progress 🚧

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions