I want to load image on web page based on img element size not screen/viewport size.
For example, I have two images like res-100px.png with 100px resolution and res-200px.png with 200px resolution.
If img width less than or equal to 100px load res-100px.png image. If img width greater than 100px load res-200px.png image.
So, Is it possible to solve this with just HTML5 and CSS3 without JS. If possible please provide some example.