It can happen, that the srcset only contains the main image, i.e. the src, without any density descriptor. Also, generally, a media query must only be added, if either a density is present, that is not equal to one, or a media query within the source is present. Otherwise you end up with
It can happen, that the
srcset
only contains the main image, i.e. thesrc
, without any density descriptor. Also, generally, a media query must only be added, if either a density is present, that is not equal to one, or a media query within the source is present. Otherwise you end up with