Image block: resizing can lead to unexpected image attributes #12914
Labels
[Block] Image
Affects the Image Block
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
[Type] Bug
An existing feature does not function as intended
Image Block
I'm not sure if this is a bug or intended behaviour, but it seems odd. I stumbled upon it randomly and it was finicky to reproduce, which makes me think the behaviour is not intended.
Basically, in certain conditions, when resizing and entering image dimensions, it appears that the image is kept in proportion regardless of what you type in. That could be a good thing, but then what's odd is the HTML that is output on the front end.
Here's an example:
The image has been inserted at the proportionate size for the given width: 250 x 100 in this case.
But the height and width attributes are what were typed in the Image Dimensions field: 250 x 10
My expectation would be either:
or
Also the srcset is missing in these cases as well - is that expected?
To Reproduce
Quick video to show how I reproduced the issue in a particular case:
https://jmp.sh/HlQZchi
**Desktop **
The text was updated successfully, but these errors were encountered: