This is reference implementation of The srcset Attribute.
srcset
Set the attributes and resize/rotate your browser window. Otherwise, use the Viewport controls below to see what matches.
Available images: default.jpg, large.jpg, small.jpg, square.jpg, thumbnail.jpg
Set the values of viewport.
Bug? report it!. Code is on Github.