What resolutions does it make sense to include in the srcset attribute? MediaWiki uses 1.5x
and 2x
. Are there e.g. any devices that would make use of 3x
?
edit: The answer to the last question seems to be “yes”.
edit October 2015: To cater for most devices with as few image versions as possible, 1.5x
, 2x
and 3x
seem to be the way to go
edit June 2023: 1.5x
, 2x
and 3x
still seems reasonable. The device list in the accepted answer has been updated
Here is an incomplete list of some devices and ratios:
Here is an answer from the spec:
References
CSS and HTML5 Responsive Images
Cross Browser Retina/High Resolution Media Queries
Resolution in Media Queries
Pixel density list
Scaling to Different Screens