It is possible to specify multiple formats for CSS background-images using the image-set function. This currently has not-great browser support so it's necessary to provide a fallback. This should be the last format in the list and/or specified by a separate argument.
Someday, this could also replace the min-resolution queries by adding a resolution and help with #5, but there's no easy fallback in that case for browsers that don't support image-set, they would always get fallback images. Currently those browsers are Opera Mini and KaiOS (not counting IE), and for Opera Mini a low-res fallback is pretty fair assumption.
It is possible to specify multiple formats for CSS background-images using the
image-set
function. This currently has not-great browser support so it's necessary to provide a fallback. This should be the last format in the list and/or specified by a separate argument.Someday, this could also replace the
min-resolution
queries by adding a resolution and help with #5, but there's no easy fallback in that case for browsers that don't supportimage-set
, they would always get fallback images. Currently those browsers are Opera Mini and KaiOS (not counting IE), and for Opera Mini a low-res fallback is pretty fair assumption.