I am trying to get to grips with srcset but I am having trouble finding a detailed reference.
From what I understand I can do something like this to specify an image for a mobile phone.
<img src="1.jpg" alt=""
srcset="1x300.jpg 300w"
sizes="(max-width: 480px) 300px">
However I am unclear how I can specify to correct image for the display density.
In the above example at a screen width of less than 480px I have specified to use the 300px image. However on a 2x retina display I would want a 600px width image but the screen size will still read as 480px.
How do I specify another image for a different pixel density?