ausi/respimagelint

Image widths modified by object-fit don’t get detected correctly

ausi opened this issue · 1 comments

ausi commented

Any value for the CSS property object-fit other than fill can result in an image width that differs from img.clientWidth in

return img.clientWidth

This property should be taken into account.

Sadly, there seems to be no JavaScript API for accessing the actual display image size inside the <img> if object-fit is used.