Source code

Revision control

Copy as Markdown

Other Tools

[sizes-2d.tentative.html]
[<img sizes="contain 10px 1000px" srcset="/images/green-1x1.png?img1 50w 50h, /images/green-16x16.png?img1 51w 51h">]
expected: FAIL
[<picture><source sizes="contain 10px 1000px" srcset="/images/green-1x1.png?picture1 50w 50h, /images/green-16x16.png?picture1 51w 51h"><img></picture>]
expected: FAIL
[<link rel="preload" as="image" imagesizes="contain 10px 1000px" imagesrcset="/images/green-1x1.png?link1 50w 50h, /images/green-16x16.png?link1 51w 51h">]
expected: FAIL
[<img sizes="CONTAIN 10px 1000px" srcset="/images/green-1x1.png?img2 50w 50h, /images/green-16x16.png?img2 51w 51h">]
expected: FAIL
[<picture><source sizes="CONTAIN 10px 1000px" srcset="/images/green-1x1.png?picture2 50w 50h, /images/green-16x16.png?picture2 51w 51h"><img></picture>]
expected: FAIL
[<link rel="preload" as="image" imagesizes="CONTAIN 10px 1000px" imagesrcset="/images/green-1x1.png?link2 50w 50h, /images/green-16x16.png?link2 51w 51h">]
expected: FAIL
[<img sizes="contain 10px 1000px, cover 10px 1000px" srcset="/images/green-1x1.png?img5 50w 50h, /images/green-16x16.png?img5 51w 51h">]
expected: FAIL
[<picture><source sizes="contain 10px 1000px, cover 10px 1000px" srcset="/images/green-1x1.png?picture5 50w 50h, /images/green-16x16.png?picture5 51w 51h"><img></picture>]
expected: FAIL
[<link rel="preload" as="image" imagesizes="contain 10px 1000px, cover 10px 1000px" imagesrcset="/images/green-1x1.png?link5 50w 50h, /images/green-16x16.png?link5 51w 51h">]
expected: FAIL
[<img sizes="contain 10px 10px" srcset="/images/green-1x1.png?img7 50w 1h, /images/green-16x16.png?img7 51w 2h">]
expected: FAIL
[<picture><source sizes="contain 10px 10px" srcset="/images/green-1x1.png?picture7 50w 1h, /images/green-16x16.png?picture7 51w 2h"><img></picture>]
expected: FAIL
[<link rel="preload" as="image" imagesizes="contain 10px 10px" imagesrcset="/images/green-1x1.png?link7 50w 1h, /images/green-16x16.png?link7 51w 2h">]
expected: FAIL
[<img sizes="(min-width: 0px) contain 10px 1000px, cover 10px 1000px" srcset="/images/green-1x1.png?img8 50w 50h, /images/green-16x16.png?img8 51w 51h">]
expected: FAIL
[<picture><source sizes="(min-width: 0px) contain 10px 1000px, cover 10px 1000px" srcset="/images/green-1x1.png?picture8 50w 50h, /images/green-16x16.png?picture8 51w 51h"><img></picture>]
expected: FAIL
[<link rel="preload" as="image" imagesizes="(min-width: 0px) contain 10px 1000px, cover 10px 1000px" imagesrcset="/images/green-1x1.png?link8 50w 50h, /images/green-16x16.png?link8 51w 51h">]
expected: FAIL
[<img sizes="(max-width: 0px) cover 10px 1000px, contain 10px 1000px" srcset="/images/green-1x1.png?img10 50w 50h, /images/green-16x16.png?img10 51w 51h">]
expected: FAIL
[<picture><source sizes="(max-width: 0px) cover 10px 1000px, contain 10px 1000px" srcset="/images/green-1x1.png?picture10 50w 50h, /images/green-16x16.png?picture10 51w 51h"><img></picture>]
expected: FAIL
[<link rel="preload" as="image" imagesizes="(max-width: 0px) cover 10px 1000px, contain 10px 1000px" imagesrcset="/images/green-1x1.png?link10 50w 50h, /images/green-16x16.png?link10 51w 51h">]
expected: FAIL
[<img sizes="(min-width: 0px) contain 10px 1000px, 1000px" srcset="/images/green-1x1.png?img11 50w 50h, /images/green-16x16.png?img11 51w 51h">]
expected: FAIL
[<picture><source sizes="(min-width: 0px) contain 10px 1000px, 1000px" srcset="/images/green-1x1.png?picture11 50w 50h, /images/green-16x16.png?picture11 51w 51h"><img></picture>]
expected: FAIL
[<link rel="preload" as="image" imagesizes="(min-width: 0px) contain 10px 1000px, 1000px" imagesrcset="/images/green-1x1.png?link11 50w 50h, /images/green-16x16.png?link11 51w 51h">]
expected: FAIL
[<img sizes="(max-width: 0px) contain 1000px 1000px, contain 10px 1000px" srcset="/images/green-1x1.png?img12 50w 50h, /images/green-16x16.png?img12 51w 51h">]
expected: FAIL
[<picture><source sizes="(max-width: 0px) contain 1000px 1000px, contain 10px 1000px" srcset="/images/green-1x1.png?picture12 50w 50h, /images/green-16x16.png?picture12 51w 51h"><img></picture>]
expected: FAIL
[<link rel="preload" as="image" imagesizes="(max-width: 0px) contain 1000px 1000px, contain 10px 1000px" imagesrcset="/images/green-1x1.png?link12 50w 50h, /images/green-16x16.png?link12 51w 51h">]
expected: FAIL
[<img sizes="(max-width: 0px) cover 10px 1000px, (min-width: 0px) contain 10px 1000px, 1000px" srcset="/images/green-1x1.png?img13 50w 50h, /images/green-16x16.png?img13 51w 51h">]
expected: FAIL
[<picture><source sizes="(max-width: 0px) cover 10px 1000px, (min-width: 0px) contain 10px 1000px, 1000px" srcset="/images/green-1x1.png?picture13 50w 50h, /images/green-16x16.png?picture13 51w 51h"><img></picture>]
expected: FAIL
[<link rel="preload" as="image" imagesizes="(max-width: 0px) cover 10px 1000px, (min-width: 0px) contain 10px 1000px, 1000px" imagesrcset="/images/green-1x1.png?link13 50w 50h, /images/green-16x16.png?link13 51w 51h">]
expected: FAIL
[<img sizes="not (max-width: 0px) cover 10px 1000px, 1px" srcset="/images/green-1x1.png?img14 50w 50h, /images/green-16x16.png?img14 51w 51h">]
expected: FAIL
[<picture><source sizes="not (max-width: 0px) cover 10px 1000px, 1px" srcset="/images/green-1x1.png?picture14 50w 50h, /images/green-16x16.png?picture14 51w 51h"><img></picture>]
expected: FAIL
[<link rel="preload" as="image" imagesizes="not (max-width: 0px) cover 10px 1000px, 1px" imagesrcset="/images/green-1x1.png?link14 50w 50h, /images/green-16x16.png?link14 51w 51h">]
expected: FAIL
[<img sizes="(min-width: 0px) and (min-height: 0px) cover 10px 1000px, 1px" srcset="/images/green-1x1.png?img16 50w 50h, /images/green-16x16.png?img16 51w 51h">]
expected: FAIL
[<picture><source sizes="(min-width: 0px) and (min-height: 0px) cover 10px 1000px, 1px" srcset="/images/green-1x1.png?picture16 50w 50h, /images/green-16x16.png?picture16 51w 51h"><img></picture>]
expected: FAIL
[<link rel="preload" as="image" imagesizes="(min-width: 0px) and (min-height: 0px) cover 10px 1000px, 1px" imagesrcset="/images/green-1x1.png?link16 50w 50h, /images/green-16x16.png?link16 51w 51h">]
expected: FAIL
[<img sizes="(max-width: 0px) or (min-height: 0px) cover 10px 1000px, 1px" srcset="/images/green-1x1.png?img18 50w 50h, /images/green-16x16.png?img18 51w 51h">]
expected: FAIL
[<picture><source sizes="(max-width: 0px) or (min-height: 0px) cover 10px 1000px, 1px" srcset="/images/green-1x1.png?picture18 50w 50h, /images/green-16x16.png?picture18 51w 51h"><img></picture>]
expected: FAIL
[<link rel="preload" as="image" imagesizes="(max-width: 0px) or (min-height: 0px) cover 10px 1000px, 1px" imagesrcset="/images/green-1x1.png?link18 50w 50h, /images/green-16x16.png?link18 51w 51h">]
expected: FAIL
[<img sizes="(width &gt;= 0px) cover 10px 1000px, 1px" srcset="/images/green-1x1.png?img19 50w 50h, /images/green-16x16.png?img19 51w 51h">]
expected: FAIL
[<picture><source sizes="(width &gt;= 0px) cover 10px 1000px, 1px" srcset="/images/green-1x1.png?picture19 50w 50h, /images/green-16x16.png?picture19 51w 51h"><img></picture>]
expected: FAIL
[<link rel="preload" as="image" imagesizes="(width &gt;= 0px) cover 10px 1000px, 1px" imagesrcset="/images/green-1x1.png?link19 50w 50h, /images/green-16x16.png?link19 51w 51h">]
expected: FAIL
[<img sizes="(min-width: 0px) cover 10px 1000px, (min-width: 0px) 1px" srcset="/images/green-1x1.png?img23 50w 50h, /images/green-16x16.png?img23 51w 51h">]
expected: FAIL
[<picture><source sizes="(min-width: 0px) cover 10px 1000px, (min-width: 0px) 1px" srcset="/images/green-1x1.png?picture23 50w 50h, /images/green-16x16.png?picture23 51w 51h"><img></picture>]
expected: FAIL
[<link rel="preload" as="image" imagesizes="(min-width: 0px) cover 10px 1000px, (min-width: 0px) 1px" imagesrcset="/images/green-1x1.png?link23 50w 50h, /images/green-16x16.png?link23 51w 51h">]
expected: FAIL
[<img sizes="(min-width: 0px) cover 10px 1000px, 1px" width="1" height="1" srcset="/images/green-1x1.png?img32 50w, /images/green-16x16.png?img32 51w">]
expected: FAIL
[<picture><source sizes="(min-width: 0px) cover 10px 1000px, 1px" width="1" height="1" srcset="/images/green-1x1.png?picture32 50w, /images/green-16x16.png?picture32 51w"><img></picture>]
expected: FAIL
[<img sizes="cover 10px 1000px" srcset="/images/green-1x1.png?img33 50w, /images/green-16x16.png?img33 51w">]
expected: FAIL
[<picture><source sizes="cover 10px 1000px" srcset="/images/green-1x1.png?picture33 50w, /images/green-16x16.png?picture33 51w"><img></picture>]
expected: FAIL
[<link rel="preload" as="image" imagesizes="cover 10px 1000px" imagesrcset="/images/green-1x1.png?link33 50w, /images/green-16x16.png?link33 51w">]
expected: FAIL
[<img sizes="cover 10px 10px" width="1" height="1" srcset="/images/green-1x1.png?img34 50w 50h, /images/green-16x16.png?img34 51w 51h">]
expected: FAIL
[<picture><source sizes="cover 10px 10px" width="1" height="1" srcset="/images/green-1x1.png?picture34 50w 50h, /images/green-16x16.png?picture34 51w 51h"><img></picture>]
expected: FAIL
[<img sizes="contain 10px 1000px" style="object-fit: cover" srcset="/images/green-1x1.png?img35 50w 50h, /images/green-16x16.png?img35 51w 51h">]
expected: FAIL
[<picture><source sizes="contain 10px 1000px" srcset="/images/green-1x1.png?picture35 50w 50h, /images/green-16x16.png?picture35 51w 51h"><img style="object-fit: cover"></picture>]
expected: FAIL
[<img sizes="auto, (min-width: 0px) cover 10px 1000px, 1px" srcset="/images/green-1x1.png?img37 50w 50h, /images/green-16x16.png?img37 51w 51h">]
expected: FAIL
[<picture><source sizes="auto, (min-width: 0px) cover 10px 1000px, 1px" srcset="/images/green-1x1.png?picture37 50w 50h, /images/green-16x16.png?picture37 51w 51h"><img></picture>]
expected: FAIL
[<link rel="preload" as="image" imagesizes="auto, (min-width: 0px) cover 10px 1000px, 1px" imagesrcset="/images/green-1x1.png?link37 50w 50h, /images/green-16x16.png?link37 51w 51h">]
expected: FAIL
[<picture><source sizes="cover 10px 1000px" srcset="/images/green-1x1.png?picture-source-width-only 50w, /images/green-16x16.png?picture-source-width-only 51w" width="1"><img width="1" height="1"></picture>]
expected: FAIL