image-checker icon indicating copy to clipboard operation
image-checker copied to clipboard

Issue with responsive images and DPR on mobile

Open alexpainter opened this issue 7 years ago • 1 comments

When responsive images are used with srcset, it looks as though images that are the right size are highlighted in blue (too small) and images that are too big are highlighted in green (OK) when emulating a mobile device with a high DPR in Devtools. I think this might be to do with using naturalWidth for the image element, rather than looking to naturalWidth of currentSrc - demo page here: https://www.alexrp.co.uk/nl/testresponse.html

alexpainter avatar Aug 09 '17 09:08 alexpainter

Thanks a lot of the bug report. Will try and get this sorted for the 1.6.0 release

tabanliviu avatar Aug 09 '17 09:08 tabanliviu