Forum Moderators: open
<picture>
<source media="(max-width: 26.8125em)" srcset="image-430x172-1x.jpg 1x, image-860x344-2x.jpg 2x" width="430" height="172">
<source media="(max-width: 31.1875em)" srcset="image-500x200-1x.jpg 1x, image-1000x400-2x.webp 2x" width="500" height="250">
<source media="(min-width: 31.25em) and (max-width: 41.875em)" srcset="image-670x268-1x.jpg 1x, image-1340x536-2x.webp 2x" width="670" height="268">
<source media="(min-width: 41.9375em) and (max-width: 51.8125em)" srcset="image-930x372narrow-1x.webp 1x, image-1395x558-15x.webp 1.5x" width="930" height="372">
<source media="(min-width: 51.875em) and (max-width: 60em)" srcset="image-930x372narrow-1x.webp 1x, image-1395x558-15x.webp 1.5x" width="930" height="372">
<img class="headergrafik" src="image-930x300wide-1x.webp" srcset="image-930x300breit-1x.webp 1x, breit-1860x600wide-2x.webp 2x" width="930" height="300" alt="...">
</picture> <link rel="preload" as="image" href="desktop.jpg"
media="(min-width: 1025px)">
<link rel="preload" as="image"
imagesrcset="mobile-1x.jpg 1x, mobile-2x.jpg 2x"
media="(max-width: 1024px)"> <link rel="preload" as="image" fetchpriority="high" media="(max-width: 26.8125em)" imagesrcset="image-430x172-1x.jpg 1x, image-860x344-2x.jpg 2x">
<link rel="preload" as="image" fetchpriority="high" media="(max-width: 31.1875em)" imagesrcset="image-500x200-1x.jpg 1x, ./grafiken/headerbild-1000x400-2x.webp 2x">
<link rel="preload" as="image" fetchpriority="high" media="(min-width: 31.25em) and (max-width: 41.875em)" imagesrcset="image-670x268-1x.jpg 1x, image-1340x536-2x.webp 2x">
<link rel="preload" as="image" fetchpriority="high" media="(min-width: 41.9375em) and (max-width: 51.8125em)" imagesrcset="image-930x372narrow-1x.webp 1x, image-1395x558-15x.webp 1.5x">
<link rel="preload" as="image" fetchpriority="high" media="(min-width: 51.875em) and (max-width: 60em)" imagesrcset="image-930x372narrow-1x.webp 1x, image-1395x558-15x.webp 1.5x">
<!-- default-img of <picture> , desktop-image "desktop-first" -->
<link rel="preload" as="image" fetchpriority="high" media="(min-width: 60.0625em)" imagesrcset="image-930x300breit-1x.webp 1x, image-1860x600breit-2x.webp 2x">
I am very uneasy about all those max-widths in ems when we are talking about a picture, whose size is in pixels. (Besides, having both max-width and min-width is redundant. Pick one or the other.) It only works when the whole page has a forced text size, which is generally A Bad Thing.
:: happily wondering what happens the day a user's configuration results in a width of exactly 51.85 em ::