You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the new Image component in Breakdance 2.1 and later, the width and height attributes of the <img> tag are not set automatically. This results in content reflow issues because the browser cannot calculate the image dimensions without these attributes.
Steps to Reproduce:
Create a new page.
Add the Image component to the page.
Select an image from the WordPress media library.
Save the page without making any additional changes to the Image component.
Preview the page in the browser and inspect the HTML of the <img> tag.
Expected Behavior:
The <img> tag should automatically include the width and height attributes based on the dimensions of the selected image.
Actual Behavior:
The <img> tag does not include width and height attributes, resulting in layout issues due to content reflow.
Additional Notes:
Before Breakdance 2.1, the width and height attributes were set automatically. This issue likely occurred due to the introduction of manual settings for these attributes in version 2.1. However, a fallback to the default dimensions of the image source is missing.
This is a critical issue as it affects the performance and layout stability of all websites built with Breakdance 2.1 and above.
Thank you for reviewing this report!
The text was updated successfully, but these errors were encountered:
Bug Description:
When using the new Image component in Breakdance 2.1 and later, the width and height attributes of the
<img>
tag are not set automatically. This results in content reflow issues because the browser cannot calculate the image dimensions without these attributes.Steps to Reproduce:
<img>
tag.Expected Behavior:
The
<img>
tag should automatically include the width and height attributes based on the dimensions of the selected image.Actual Behavior:
The
<img>
tag does not include width and height attributes, resulting in layout issues due to content reflow.Additional Notes:
Before Breakdance 2.1, the width and height attributes were set automatically. This issue likely occurred due to the introduction of manual settings for these attributes in version 2.1. However, a fallback to the default dimensions of the image source is missing.
This is a critical issue as it affects the performance and layout stability of all websites built with Breakdance 2.1 and above.
Thank you for reviewing this report!
The text was updated successfully, but these errors were encountered: