Your content here
HTML
Verbose syntax
W-descriptors -
describe width of
image
Decide display
dimension
Fallback - DPR
of 1x
X descriptors:
Pixel density of
screen
Fixed Width Images
VW is viewport width
100vw = 100% of viewport width
75vw = 75% of the viewport width
Browser will use srcset and sizes to serve
image that match the condition
Variable Width Images
Browser Viewport: 900px
900 * 0.50 =
450
Retina display with DPR of 2 will
load (450 * 2) px of image
Must have img tag for
fallback & must appear
after all sources
You can have as many
sources as you want &
it will be obeyed
Make markup simpler!
Future Solution
No longer need srcset
since image resizing will
be done server side
Future Solution