-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorporate layout constraints from ancestor blocks into the sizes calculations #1511
Comments
@mukeshpanchal27 and I have been exploring this issue over the last several weeks and I wanted to give a quick progress update. Technical discoveryIn order to incorporate layout information from column, group, row, and stack blocks that are ancestors of images, we considered several different approaches. Use
|
To help with implementation of this issue, I'm listing some use cases we need to solve for
|
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.
The text was updated successfully, but these errors were encountered: