Forum Moderators: not2easy
An image source can have a density descriptor, a width descriptor, or no descriptor at all accompanying its URL. Normalising a source set gives every image source a density descriptor.
When asked to normalise the source densities of a source set source set, the user agent must do the following:
Let source size be source set's source size.
For each image source in source set:
If the image source has a density descriptor, continue to the next image source.
Otherwise, if the image source has a width descriptor, replace the width descriptor with a density descriptor with a value of the width descriptor divided by the source size and a unit of x.
If the source size is zero, the density would be infinity, which results in the intrinsic dimensions being zero by zero.
Otherwise, give the image source a density descriptor of 1x.
src="/images/photo1x.jpg" srcset="/images/photo2x.jpg 2x, /images/photo2x.jpg 3x"
Let your images resize. Control the image size by setting the % width of its container. In css the image element should have this setting:
img,
embed,
object,
video
{
max-width: 100%;
}
..and it will resize to fit the downsized elements automatically.
Let your images resize
you're advocating stretching images to fit containers.