Skip to content

Set height: auto only on images with both dimension set

Himanshu Kapoor requested to merge himkp-retina-width into master

What does this MR do and why?

Set height: auto only on images with both dimension set

To avoid overriding image height to auto on images with only height set, we set height: auto only if both width and height are set.

Changelog: fixed

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Case Before After
![image](url){height=Y} image image.png
![image](url){width=X height=Y} (no change) image.png image.png

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Himanshu Kapoor

Merge request reports