From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- .../embedded-content/the-img-element/3.jpg | Bin 0 -> 91072 bytes .../404-response-with-actual-image-data.html | 18 + .../404-response-with-actual-image-data.py | 4 + .../the-img-element/Image-constructor.html | 42 ++ .../the-img-element/adopt-from-image-document.html | 16 + .../embedded-content/the-img-element/adoption.html | 91 +++ .../already-loaded-image-sync-width.html | 20 + .../the-img-element/available-images-onload.html | 33 ++ .../the-img-element/available-images-ref.html | 2 + .../the-img-element/available-images.html | 17 + ...low-viewport-image-loading-lazy-load-event.html | 69 +++ .../embedded-content/the-img-element/brokenimg.jpg | 4 + .../current-pixel-density/basic.html | 37 ++ .../current-pixel-density/error.html | 31 + .../the-img-element/currentSrc-blob-cache.html | 45 ++ .../embedded-content/the-img-element/data-url.html | 24 + .../decode/image-decode-iframe.html | 54 ++ .../decode/image-decode-image-document.html | 25 + .../image-decode-path-changes-svg.tentative.html | 82 +++ .../decode/image-decode-path-changes.html | 121 ++++ .../decode/image-decode-picture.html | 133 +++++ .../decode/image-decode-svg.tentative.html | 128 ++++ ...age-decode-with-quick-attach-svg.tentative.html | 23 + .../decode/image-decode-with-quick-attach.html | 26 + .../the-img-element/decode/image-decode.html | 138 +++++ .../the-img-element/delay-load-event-detached.html | 30 + ...elay-load-event-until-move-to-empty-source.html | 25 + .../the-img-element/delay-load-event.html | 26 + .../disconnected-image-loading-lazy.html | 32 + .../the-img-element/document-adopt-base-url.html | 14 + .../the-img-element/document-base-url-ref.html | 5 + .../the-img-element/document-base-url.html | 7 + .../the-img-element/document-destroyed-crash.html | 18 + .../environment-changes/iframed.sub.html | 78 +++ .../environment-changes/viewport-change.html | 65 +++ .../historical-progress-event.window.js | 16 + .../embedded-content/the-img-element/image-1.jpg | Bin 0 -> 389245 bytes .../the-img-element/image-base-url.html | 70 +++ .../image-compositing-change-ref.html | 10 + .../the-img-element/image-compositing-change.html | 31 + .../image-compositing-large-scale-change-ref.html | 16 + .../image-compositing-large-scale-change.html | 36 ++ .../the-img-element/image-loading-eager.html | 47 ++ .../image-loading-lazy-available.html | 30 + .../image-loading-lazy-base-url-2.html | 52 ++ .../image-loading-lazy-base-url.html | 51 ++ .../image-loading-lazy-below-viewport-dynamic.html | 45 ++ .../image-loading-lazy-clip-path-ref.html | 2 + .../image-loading-lazy-clip-path.html | 14 + .../image-loading-lazy-crossorigin-change.sub.html | 40 ++ .../image-loading-lazy-data-url-to-https-ref.html | 2 + .../image-loading-lazy-data-url-to-https.html | 24 + .../image-loading-lazy-empty-src.html | 25 + ...oading-lazy-in-cross-origin-iframe-001.sub.html | 44 ++ ...oading-lazy-in-cross-origin-iframe-002.sub.html | 46 ++ ...age-loading-lazy-in-script-disabled-iframe.html | 23 + .../image-loading-lazy-in-viewport-dynamic.html | 40 ++ .../image-loading-lazy-move-document.html | 38 ++ ...ding-lazy-move-into-script-disabled-iframe.html | 29 + .../image-loading-lazy-multicol.html | 44 ++ .../image-loading-lazy-multiple-times.html | 60 ++ .../image-loading-lazy-negative-margin.html | 61 ++ ...age-loading-lazy-referrerpolicy-change.sub.html | 46 ++ .../image-loading-lazy-relevant-mutations.html | 83 +++ .../image-loading-lazy-slow-aspect-ratio-ref.html | 2 + .../image-loading-lazy-slow-aspect-ratio.html | 21 + .../image-loading-lazy-slow-ref.html | 2 + .../the-img-element/image-loading-lazy-slow.html | 22 + .../the-img-element/image-loading-lazy-srcset.html | 38 ++ ...image-loading-lazy-subframe-detached-crash.html | 26 + .../image-loading-lazy-to-eager.html | 55 ++ ...-loading-lazy-use-list-of-available-images.html | 62 ++ .../image-loading-lazy-zero-intersection-area.html | 19 + .../the-img-element/image-loading-lazy.html | 112 ++++ .../image-loading-subpixel-clip-ref.html | 22 + .../image-loading-subpixel-clip.html | 25 + .../image-srcdoc-relative-uri-print-ref.html | 8 + .../image-srcdoc-relative-uri-print.html | 6 + .../embedded-content/the-img-element/image.png | Bin 0 -> 268 bytes .../img-created-in-active-document-crash.html | 6 + .../the-img-element/img-picture-ancestor.html | 50 ++ .../img-with-containment-and-size-ref.html | 8 + .../img-with-containment-and-size.html | 22 + .../the-img-element/img.complete.html | 200 +++++++ .../the-img-element/invalid-src.html | 32 + .../the-img-element/invisible-image.html | 78 +++ .../ismap/img-ismap-coordinates-iframe-after.html | 21 + .../ismap/img-ismap-coordinates-iframe-before.html | 21 + .../ismap/img-ismap-coordinates-iframe-inside.html | 21 + .../ismap/img-ismap-coordinates-manual.html | 78 +++ ...-coalesce-in-flight-requests.sub.tentative.html | 49 ++ .../list-of-available-images-matching.https.html | 68 +++ .../the-img-element/move-element-and-scroll.html | 36 ++ .../the-img-element/natural-size-orientation.html | 45 ++ .../the-img-element/non-active-document.html | 52 ++ .../the-img-element/nonexistent-image.html | 21 + ...rendered-below-viewport-image-loading-lazy.html | 63 ++ .../not-rendered-dimension-getter.html | 22 + .../not-rendered-image-loading-lazy.html | 49 ++ .../the-img-element/null-image-source.html | 30 + .../the-img-element/picture-loading-lazy.html | 64 ++ .../the-img-element/relevant-mutations.html | 643 +++++++++++++++++++++ .../the-img-element/remove-element-and-scroll.html | 32 + .../the-img-element/resources/blue-10.png | Bin 0 -> 76 bytes .../the-img-element/resources/cat.jpg | Bin 0 -> 21474 bytes .../the-img-element/resources/green.png | Bin 0 -> 91 bytes .../the-img-element/resources/image-and-stash.py | 44 ++ .../image-loading-lazy-below-viewport.html | 22 + .../resources/image-loading-lazy-in-viewport.html | 20 + .../the-img-element/resources/image.png | Bin 0 -> 11493 bytes .../the-img-element/resources/newwindow.html | 2 + .../the-img-element/resources/red.png | Bin 0 -> 510 bytes .../resources/referrer-checker-img.py | 14 + .../the-img-element/resources/sw.js | 20 + .../the-img-element/resources/sw.js.headers | 1 + .../responsive-image-select-print-ref.html | 4 + .../responsive-image-select-print.html | 12 + ...elow-viewport-image-lazy-loading-in-iframe.html | 32 + .../sizes/implicit-sizes-ignores-width.html | 19 + .../parse-a-sizes-attribute-display-none.html | 7 + .../sizes/parse-a-sizes-attribute-quirks-mode.html | 7 + .../parse-a-sizes-attribute-standards-mode.html | 7 + .../parse-a-sizes-attribute-width-1000px.html | 7 + .../sizes/sizes-dynamic-001-ref.html | 4 + .../the-img-element/sizes/sizes-dynamic-001.html | 20 + .../the-img-element/sizes/sizes-dynamic-002.html | 33 ++ .../sizes/support/parse-a-sizes-attribute.js | 29 + .../sizes/support/sizes-iframed.sub.html | 187 ++++++ .../the-img-element/source-media-outside-doc.html | 50 ++ .../srcset/avoid-reload-on-resize.html | 20 + .../the-img-element/srcset/common.js | 25 + .../srcset/parse-a-srcset-attribute.html | 245 ++++++++ .../the-img-element/srcset/resources/image.png | Bin 0 -> 268 bytes .../srcset/resources/image.png.headers | 3 + .../the-img-element/srcset/resources/resized.html | 2 + .../srcset/select-an-image-source.html | 20 + .../srcset/srcset-media-dynamic.html | 25 + .../the-img-element/support/external-sheet.svg | 4 + .../the-img-element/support/red-bg.css | 2 + .../svg-img-with-external-stylesheet-ref.html | 4 + .../svg-img-with-external-stylesheet.html | 6 + .../the-img-element/update-media.html | 32 + .../the-img-element/update-src-complete.html | 25 + .../current-request-microtask.html | 38 ++ .../update-the-image-data/fail-to-resolve.html | 25 + .../the-img-element/update-the-source-set.html | 140 +++++ .../the-img-element/usemap-casing.html | 93 +++ 147 files changed, 5889 insertions(+) create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/3.jpg create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/404-response-with-actual-image-data.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/404-response-with-actual-image-data.py create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/Image-constructor.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/adopt-from-image-document.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/adoption.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/already-loaded-image-sync-width.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/available-images-onload.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/available-images-ref.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/available-images.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/below-viewport-image-loading-lazy-load-event.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/brokenimg.jpg create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/current-pixel-density/basic.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/current-pixel-density/error.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/currentSrc-blob-cache.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/data-url.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-iframe.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-image-document.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-path-changes-svg.tentative.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-path-changes.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-picture.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-svg.tentative.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-with-quick-attach-svg.tentative.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-with-quick-attach.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/delay-load-event-detached.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/delay-load-event-until-move-to-empty-source.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/delay-load-event.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/disconnected-image-loading-lazy.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/document-adopt-base-url.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/document-base-url-ref.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/document-base-url.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/document-destroyed-crash.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/environment-changes/iframed.sub.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/environment-changes/viewport-change.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/historical-progress-event.window.js create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-1.jpg create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-base-url.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-compositing-change-ref.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-compositing-change.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-compositing-large-scale-change-ref.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-compositing-large-scale-change.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-eager.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-available.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-base-url-2.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-base-url.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-below-viewport-dynamic.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-clip-path-ref.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-clip-path.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-crossorigin-change.sub.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-data-url-to-https-ref.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-data-url-to-https.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-empty-src.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-cross-origin-iframe-001.sub.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-cross-origin-iframe-002.sub.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-script-disabled-iframe.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-viewport-dynamic.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-move-document.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-move-into-script-disabled-iframe.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-multicol.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-multiple-times.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-negative-margin.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-referrerpolicy-change.sub.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-relevant-mutations.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow-aspect-ratio-ref.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow-aspect-ratio.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow-ref.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-srcset.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-subframe-detached-crash.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-to-eager.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-use-list-of-available-images.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-zero-intersection-area.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-subpixel-clip-ref.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-subpixel-clip.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-srcdoc-relative-uri-print-ref.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-srcdoc-relative-uri-print.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image.png create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/img-created-in-active-document-crash.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/img-picture-ancestor.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/img-with-containment-and-size-ref.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/img-with-containment-and-size.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/img.complete.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/invalid-src.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/invisible-image.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-iframe-after.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-iframe-before.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-iframe-inside.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-manual.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/list-of-available-images-does-not-coalesce-in-flight-requests.sub.tentative.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/list-of-available-images-matching.https.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/move-element-and-scroll.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/natural-size-orientation.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/non-active-document.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/nonexistent-image.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/not-rendered-below-viewport-image-loading-lazy.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/not-rendered-dimension-getter.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/not-rendered-image-loading-lazy.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/null-image-source.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/picture-loading-lazy.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/relevant-mutations.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/remove-element-and-scroll.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/blue-10.png create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/cat.jpg create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/green.png create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image-and-stash.py create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image-loading-lazy-below-viewport.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image-loading-lazy-in-viewport.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image.png create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/newwindow.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/red.png create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/referrer-checker-img.py create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/sw.js create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/sw.js.headers create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/responsive-image-select-print-ref.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/responsive-image-select-print.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/scrolling-below-viewport-image-lazy-loading-in-iframe.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/implicit-sizes-ignores-width.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-display-none.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-quirks-mode.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-standards-mode.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-width-1000px.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-001-ref.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-001.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-002.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/support/parse-a-sizes-attribute.js create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/support/sizes-iframed.sub.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/source-media-outside-doc.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/avoid-reload-on-resize.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/common.js create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/parse-a-srcset-attribute.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/resources/image.png create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/resources/image.png.headers create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/resources/resized.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/select-an-image-source.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/srcset-media-dynamic.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/support/external-sheet.svg create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/support/red-bg.css create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/svg-img-with-external-stylesheet-ref.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/svg-img-with-external-stylesheet.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-media.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-src-complete.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-the-image-data/current-request-microtask.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-the-image-data/fail-to-resolve.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-the-source-set.html create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/usemap-casing.html (limited to 'testing/web-platform/tests/html/semantics/embedded-content/the-img-element') diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/3.jpg b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/3.jpg new file mode 100644 index 0000000000..d30ac2ac36 Binary files /dev/null and b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/3.jpg differ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/404-response-with-actual-image-data.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/404-response-with-actual-image-data.html new file mode 100644 index 0000000000..73b937f67f --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/404-response-with-actual-image-data.html @@ -0,0 +1,18 @@ + + +404 response with actual image data should be rendered and load event is fired + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/404-response-with-actual-image-data.py b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/404-response-with-actual-image-data.py new file mode 100644 index 0000000000..083aa90b41 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/404-response-with-actual-image-data.py @@ -0,0 +1,4 @@ +from base64 import decodebytes + +def main(req, res): + return 404, [(b'Content-Type', b'image/png')], decodebytes(b"iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAhSURBVDhPY3wro/KfgQLABKXJBqMGjBoAAqMGDLwBDAwAEsoCTFWunmQAAAAASUVORK5CYII=") diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/Image-constructor.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/Image-constructor.html new file mode 100644 index 0000000000..3cfef5f4f9 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/Image-constructor.html @@ -0,0 +1,42 @@ + +DOM Image constructor Test + + + + + + + +
+ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/adopt-from-image-document.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/adopt-from-image-document.html new file mode 100644 index 0000000000..30729fc81c --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/adopt-from-image-document.html @@ -0,0 +1,16 @@ + +Adopt img from image document + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/adoption.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/adoption.html new file mode 100644 index 0000000000..15e02bcf51 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/adoption.html @@ -0,0 +1,91 @@ + + +Adopting an image updates the image data + + +
+ + + +
+ + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/already-loaded-image-sync-width.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/already-loaded-image-sync-width.html new file mode 100644 index 0000000000..4a63bd7a7a --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/already-loaded-image-sync-width.html @@ -0,0 +1,20 @@ + + +Image dimensions are available synchronously after changing src to an already-loaded image + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/available-images-onload.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/available-images-onload.html new file mode 100644 index 0000000000..5fc5cb8b61 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/available-images-onload.html @@ -0,0 +1,33 @@ + + +Ensure images from available images list can be drawn to a canvas + + + + +
+ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/available-images-ref.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/available-images-ref.html new file mode 100644 index 0000000000..8061abae50 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/available-images-ref.html @@ -0,0 +1,2 @@ + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/available-images.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/available-images.html new file mode 100644 index 0000000000..779ff97868 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/available-images.html @@ -0,0 +1,17 @@ + + +Ensure images from available images list are rendered + + + +
+ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/below-viewport-image-loading-lazy-load-event.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/below-viewport-image-loading-lazy-load-event.html new file mode 100644 index 0000000000..b1dee3a3ca --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/below-viewport-image-loading-lazy-load-event.html @@ -0,0 +1,69 @@ + + + Below-viewport loading=lazy images do not block the window load event + when scrolled into viewport + + + + + + + + + + + + + +
+ + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/brokenimg.jpg b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/brokenimg.jpg new file mode 100644 index 0000000000..ccff177ae9 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/brokenimg.jpg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/current-pixel-density/basic.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/current-pixel-density/basic.html new file mode 100644 index 0000000000..f7d47b3640 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/current-pixel-density/basic.html @@ -0,0 +1,37 @@ + +img current pixel density basic + + +
+ + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/current-pixel-density/error.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/current-pixel-density/error.html new file mode 100644 index 0000000000..5e328b5e2d --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/current-pixel-density/error.html @@ -0,0 +1,31 @@ + +img current pixel density error + + +
+testing +testing +testing +testing +testing +testing +testing + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/currentSrc-blob-cache.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/currentSrc-blob-cache.html new file mode 100644 index 0000000000..a5e108dcd6 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/currentSrc-blob-cache.html @@ -0,0 +1,45 @@ + + +currentSrc is right even if underlying image is a shared blob + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/data-url.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/data-url.html new file mode 100644 index 0000000000..808b5c884c --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/data-url.html @@ -0,0 +1,24 @@ + + +data URL image + + +
+ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-iframe.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-iframe.html new file mode 100644 index 0000000000..ed14a007a6 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-iframe.html @@ -0,0 +1,54 @@ + + + +HTMLImageElement.prototype.decode(), iframe tests. + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-image-document.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-image-document.html new file mode 100644 index 0000000000..e54ae223a0 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-image-document.html @@ -0,0 +1,25 @@ + +HTMLImageElement.prototype.decode(), image document tests. + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-path-changes-svg.tentative.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-path-changes-svg.tentative.html new file mode 100644 index 0000000000..1bc53a1f18 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-path-changes-svg.tentative.html @@ -0,0 +1,82 @@ + + + +SVGImageElement.prototype.decode(), href mutation tests. + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-path-changes.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-path-changes.html new file mode 100644 index 0000000000..4b878c1bae --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-path-changes.html @@ -0,0 +1,121 @@ + + + +HTMLImageElement.prototype.decode(), src/srcset mutation tests. + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-picture.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-picture.html new file mode 100644 index 0000000000..2f4d5e7c41 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-picture.html @@ -0,0 +1,133 @@ + + + +HTMLImageElement.prototype.decode(), picture tests. + + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-svg.tentative.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-svg.tentative.html new file mode 100644 index 0000000000..047470f1e3 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-svg.tentative.html @@ -0,0 +1,128 @@ + + + +SVGImageElement.prototype.decode(), basic tests. + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-with-quick-attach-svg.tentative.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-with-quick-attach-svg.tentative.html new file mode 100644 index 0000000000..0fc49e6036 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-with-quick-attach-svg.tentative.html @@ -0,0 +1,23 @@ + + + +SVGImageElement.prototype.decode(), attach to DOM before promise resolves. + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-with-quick-attach.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-with-quick-attach.html new file mode 100644 index 0000000000..be680da619 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode-with-quick-attach.html @@ -0,0 +1,26 @@ + + + +HTMLImageElement.prototype.decode(), attach to DOM before promise resolves. + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode.html new file mode 100644 index 0000000000..fac61a1446 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/decode/image-decode.html @@ -0,0 +1,138 @@ + + + +HTMLImageElement.prototype.decode(), basic tests. + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/delay-load-event-detached.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/delay-load-event-detached.html new file mode 100644 index 0000000000..5c68de29e9 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/delay-load-event-detached.html @@ -0,0 +1,30 @@ + + +Detached image blocks load + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/delay-load-event-until-move-to-empty-source.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/delay-load-event-until-move-to-empty-source.html new file mode 100644 index 0000000000..7b61606c47 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/delay-load-event-until-move-to-empty-source.html @@ -0,0 +1,25 @@ + + +Inline image element blocks load until source is changed to empty source + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/delay-load-event.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/delay-load-event.html new file mode 100644 index 0000000000..ac0cf29d3f --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/delay-load-event.html @@ -0,0 +1,26 @@ + + +Inline image element blocks load + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/disconnected-image-loading-lazy.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/disconnected-image-loading-lazy.html new file mode 100644 index 0000000000..fe6d79fe2a --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/disconnected-image-loading-lazy.html @@ -0,0 +1,32 @@ + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/document-adopt-base-url.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/document-adopt-base-url.html new file mode 100644 index 0000000000..ea63114d57 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/document-adopt-base-url.html @@ -0,0 +1,14 @@ + + +Document base URL adopted img test + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/document-base-url-ref.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/document-base-url-ref.html new file mode 100644 index 0000000000..6e55b21ff0 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/document-base-url-ref.html @@ -0,0 +1,5 @@ + + +Document base URL img test + +cat diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/document-base-url.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/document-base-url.html new file mode 100644 index 0000000000..074209cc04 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/document-base-url.html @@ -0,0 +1,7 @@ + + +Document base URL img test + + + +cat diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/document-destroyed-crash.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/document-destroyed-crash.html new file mode 100644 index 0000000000..da43099f71 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/document-destroyed-crash.html @@ -0,0 +1,18 @@ + +<img> loading in destroyed document + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/environment-changes/iframed.sub.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/environment-changes/iframed.sub.html new file mode 100644 index 0000000000..0f7ab9ae27 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/environment-changes/iframed.sub.html @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/environment-changes/viewport-change.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/environment-changes/viewport-change.html new file mode 100644 index 0000000000..f6ae65708c --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/environment-changes/viewport-change.html @@ -0,0 +1,65 @@ + +img viewport change + + + + +
+ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/historical-progress-event.window.js b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/historical-progress-event.window.js new file mode 100644 index 0000000000..7c4e121b7c --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/historical-progress-event.window.js @@ -0,0 +1,16 @@ +async_test(t => { + const img = new Image(); + t.add_cleanup(() => img.remove()); + img.onloadstart = img.onprogress = img.onloadend = t.unreached_func("progress event fired"); + img.onload = t.step_func_done(e => { + assert_true(e instanceof Event); + assert_false(e instanceof ProgressEvent); + }); + img.src = "/images/rrgg-256x256.png"; + document.body.append(img); +}, " does not support ProgressEvent or loadstart/progress/loadend"); + +test(t => { + assert_equals(document.body.onloadend, undefined); + assert_equals(window.onloadend, undefined); +}, "onloadend is not exposed"); diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-1.jpg b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-1.jpg new file mode 100644 index 0000000000..2fb0255609 Binary files /dev/null and b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-1.jpg differ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-base-url.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-base-url.html new file mode 100644 index 0000000000..932cd92b41 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-base-url.html @@ -0,0 +1,70 @@ + + + + Image load parses URL after microtask runs + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-compositing-change-ref.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-compositing-change-ref.html new file mode 100644 index 0000000000..ea80d8b545 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-compositing-change-ref.html @@ -0,0 +1,10 @@ + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-compositing-change.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-compositing-change.html new file mode 100644 index 0000000000..658c2ad39e --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-compositing-change.html @@ -0,0 +1,31 @@ + + +Composited images correctly re-raster when the image and bounds change + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-compositing-large-scale-change-ref.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-compositing-large-scale-change-ref.html new file mode 100644 index 0000000000..852a47687e --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-compositing-large-scale-change-ref.html @@ -0,0 +1,16 @@ + + + + + +
div
diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-compositing-large-scale-change.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-compositing-large-scale-change.html new file mode 100644 index 0000000000..515f88e3f4 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-compositing-large-scale-change.html @@ -0,0 +1,36 @@ + + +Composited images correctly display under large scale transform changes + + + + + + +
+ + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-eager.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-eager.html new file mode 100644 index 0000000000..54e169f867 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-eager.html @@ -0,0 +1,47 @@ + + + Images with loading='eager' load immediately regardless of their + position with respect to the viewport + + + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-available.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-available.html new file mode 100644 index 0000000000..1e58c43c86 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-available.html @@ -0,0 +1,30 @@ + +The list of available images gets checked before deciding to make a load lazy + + + + + + + +
+ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-base-url-2.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-base-url-2.html new file mode 100644 index 0000000000..e3a4a5f96e --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-base-url-2.html @@ -0,0 +1,52 @@ + + + Deferred loading=lazy images load relative to the document's base URL + at parse-time + + + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-base-url.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-base-url.html new file mode 100644 index 0000000000..01ce961d0f --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-base-url.html @@ -0,0 +1,51 @@ + + + Deferred images with loading='lazy' use the original + base URL specified at parse-time + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-below-viewport-dynamic.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-below-viewport-dynamic.html new file mode 100644 index 0000000000..78f18f0c23 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-below-viewport-dynamic.html @@ -0,0 +1,45 @@ + + + Below viewport images with loading='lazy' and changed to + loading='eager' load and do not block the window load event + + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-clip-path-ref.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-clip-path-ref.html new file mode 100644 index 0000000000..05a60034ad --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-clip-path-ref.html @@ -0,0 +1,2 @@ + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-clip-path.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-clip-path.html new file mode 100644 index 0000000000..55f134a701 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-clip-path.html @@ -0,0 +1,14 @@ + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-crossorigin-change.sub.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-crossorigin-change.sub.html new file mode 100644 index 0000000000..84efc7b0d1 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-crossorigin-change.sub.html @@ -0,0 +1,40 @@ + + + Deferred images with loading='lazy' use the latest crossorigin attribute + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-data-url-to-https-ref.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-data-url-to-https-ref.html new file mode 100644 index 0000000000..05a60034ad --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-data-url-to-https-ref.html @@ -0,0 +1,2 @@ + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-data-url-to-https.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-data-url-to-https.html new file mode 100644 index 0000000000..809068dd05 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-data-url-to-https.html @@ -0,0 +1,24 @@ + + + + Lazy loaded Images with data url placeholders can be overwritten by a src change + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-empty-src.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-empty-src.html new file mode 100644 index 0000000000..2a0aefea1d --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-empty-src.html @@ -0,0 +1,25 @@ + + +Lazy loaded Images handle correctly when setting src to empty + +
+ + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-cross-origin-iframe-001.sub.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-cross-origin-iframe-001.sub.html new file mode 100644 index 0000000000..eed3644650 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-cross-origin-iframe-001.sub.html @@ -0,0 +1,44 @@ + + +A below-viewport loading=lazy image in a cross origin iframe loads only + when scrolled into viewport + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-cross-origin-iframe-002.sub.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-cross-origin-iframe-002.sub.html new file mode 100644 index 0000000000..85060d2193 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-cross-origin-iframe-002.sub.html @@ -0,0 +1,46 @@ + + +A loading=lazy image in a below-viewport cross-origin iframe loads only + when the cross-origin iframe is scrolled into view + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-script-disabled-iframe.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-script-disabled-iframe.html new file mode 100644 index 0000000000..fbcadd86c9 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-script-disabled-iframe.html @@ -0,0 +1,23 @@ + + +Images with loading='lazy' in script disabled iframe are not handled + as 'lazy' + + + + + +
+ + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-viewport-dynamic.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-viewport-dynamic.html new file mode 100644 index 0000000000..39dd5dc1e9 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-in-viewport-dynamic.html @@ -0,0 +1,40 @@ + + + In viewport images with loading='lazy' and changed to loading='eager' + do not block the window load event + + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-move-document.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-move-document.html new file mode 100644 index 0000000000..ff7e83105c --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-move-document.html @@ -0,0 +1,38 @@ + + +Moving loading='lazy' image into another top level document + + + + + +
+ + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-move-into-script-disabled-iframe.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-move-into-script-disabled-iframe.html new file mode 100644 index 0000000000..79bfa24378 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-move-into-script-disabled-iframe.html @@ -0,0 +1,29 @@ + + +A loading='lazy' image starts loading when the element is moved into + an iframe where script is disabled + + + + + +
+ + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-multicol.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-multicol.html new file mode 100644 index 0000000000..20d52d4dfa --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-multicol.html @@ -0,0 +1,44 @@ + + + Images with loading='lazy' load when in the viewport + + + + + + + + +
+
+

+ +
+
+ + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-multiple-times.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-multiple-times.html new file mode 100644 index 0000000000..2d67150560 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-multiple-times.html @@ -0,0 +1,60 @@ + + Images with loading='lazy' can be lazy loaded multiple times + + + + + + + + +
+
+ + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-negative-margin.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-negative-margin.html new file mode 100644 index 0000000000..1651d8dda7 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-negative-margin.html @@ -0,0 +1,61 @@ + + + Images with loading='lazy' defers images in a hidden area as a result + of negative margins + + + + + + + + + +
+ +
+ + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-referrerpolicy-change.sub.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-referrerpolicy-change.sub.html new file mode 100644 index 0000000000..110c36cca7 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-referrerpolicy-change.sub.html @@ -0,0 +1,46 @@ + + + Deferred loading=lazy images are fetched with the latest + `referrerpolicy` attribute + + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-relevant-mutations.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-relevant-mutations.html new file mode 100644 index 0000000000..3a2662451e --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-relevant-mutations.html @@ -0,0 +1,83 @@ + + + Relevant mutations on deferred loading=lazy images should not trigger + a request + + + + + + + + + +
+ + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow-aspect-ratio-ref.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow-aspect-ratio-ref.html new file mode 100644 index 0000000000..6de01a9b3b --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow-aspect-ratio-ref.html @@ -0,0 +1,2 @@ + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow-aspect-ratio.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow-aspect-ratio.html new file mode 100644 index 0000000000..662ada6909 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow-aspect-ratio.html @@ -0,0 +1,21 @@ + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow-ref.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow-ref.html new file mode 100644 index 0000000000..20fbb9b50e --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow-ref.html @@ -0,0 +1,2 @@ + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow.html new file mode 100644 index 0000000000..fac2c2e8f7 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow.html @@ -0,0 +1,22 @@ + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-srcset.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-srcset.html new file mode 100644 index 0000000000..953d4af4ef --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-srcset.html @@ -0,0 +1,38 @@ + + +loading='lazy' image with srcset + + + + + +
+ + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-subframe-detached-crash.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-subframe-detached-crash.html new file mode 100644 index 0000000000..86a290d50d --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-subframe-detached-crash.html @@ -0,0 +1,26 @@ + + +Crash when detaching a frame during a lazy-load operation + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-to-eager.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-to-eager.html new file mode 100644 index 0000000000..6246063981 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-to-eager.html @@ -0,0 +1,55 @@ + + + Below-viewport images with loading='lazy' load when set to + loading='eager' or the `loading` attribute is removed + + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-use-list-of-available-images.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-use-list-of-available-images.html new file mode 100644 index 0000000000..8614a68315 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-use-list-of-available-images.html @@ -0,0 +1,62 @@ + + +Lazyload images can load immediately from the list of available images + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-zero-intersection-area.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-zero-intersection-area.html new file mode 100644 index 0000000000..9962ce7837 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-zero-intersection-area.html @@ -0,0 +1,19 @@ + + +Image with zero intersection area is lazy-loaded + + + + + + + +
+ +
+ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy.html new file mode 100644 index 0000000000..88f6549d96 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy.html @@ -0,0 +1,112 @@ + + + Images with loading='lazy' load only when in the viewport + + + + + + + + + + + + +
+ + + + +
+ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-subpixel-clip-ref.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-subpixel-clip-ref.html new file mode 100644 index 0000000000..f841dba31b --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-subpixel-clip-ref.html @@ -0,0 +1,22 @@ + + + + + Images with loading='lazy' load under subpixel-offset clips + + + +
+
+ +
+ + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-subpixel-clip.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-subpixel-clip.html new file mode 100644 index 0000000000..594d9bebe4 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-subpixel-clip.html @@ -0,0 +1,25 @@ + + + + + Images with loading='lazy' load under subpixel-offset clips + + + + +
+
+
+ +
+
+ + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-srcdoc-relative-uri-print-ref.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-srcdoc-relative-uri-print-ref.html new file mode 100644 index 0000000000..160f9f50a1 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-srcdoc-relative-uri-print-ref.html @@ -0,0 +1,8 @@ + + +FAIL diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-srcdoc-relative-uri-print.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-srcdoc-relative-uri-print.html new file mode 100644 index 0000000000..4ad922ba00 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-srcdoc-relative-uri-print.html @@ -0,0 +1,6 @@ + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/img-picture-ancestor.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/img-picture-ancestor.html new file mode 100644 index 0000000000..3518cab54d --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/img-picture-ancestor.html @@ -0,0 +1,50 @@ + +img should only look at a parent picture element + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/img-with-containment-and-size-ref.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/img-with-containment-and-size-ref.html new file mode 100644 index 0000000000..56176c4b71 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/img-with-containment-and-size-ref.html @@ -0,0 +1,8 @@ + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/img-with-containment-and-size.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/img-with-containment-and-size.html new file mode 100644 index 0000000000..a095adc7cf --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/img-with-containment-and-size.html @@ -0,0 +1,22 @@ + + +Ensure images with containment and size are rendered properly + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/img.complete.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/img.complete.html new file mode 100644 index 0000000000..d8d5a84eb7 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/img.complete.html @@ -0,0 +1,200 @@ + +DOM img complete Test + + + + + + + + + + +
+ + + +
+ + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/invalid-src.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/invalid-src.html new file mode 100644 index 0000000000..37ea8ce754 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/invalid-src.html @@ -0,0 +1,32 @@ + + +Loading a non-parsing URL as an image should silently fail; triggering appropriate events + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/invisible-image.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/invisible-image.html new file mode 100644 index 0000000000..35ebbaa11a --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/invisible-image.html @@ -0,0 +1,78 @@ + + + Test that below-viewport invisible images that are not marked + loading=lazy still load, and block the window load event + + + + + + + + +
+ + + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-iframe-after.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-iframe-after.html new file mode 100644 index 0000000000..bb4c5991c9 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-iframe-after.html @@ -0,0 +1,21 @@ + + + + img ismap attribute coordinate origin + + + +
+
+ + + +
+

Click inside the dashed rectangle

+ + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-iframe-before.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-iframe-before.html new file mode 100644 index 0000000000..8349b62783 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-iframe-before.html @@ -0,0 +1,21 @@ + + + + img ismap attribute coordinate origin + + + +
+
+ + + +
+

Click inside the dashed rectangle

+ + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-iframe-inside.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-iframe-inside.html new file mode 100644 index 0000000000..fdecee9ace --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-iframe-inside.html @@ -0,0 +1,21 @@ + + + + img ismap attribute coordinate origin + + + +
+
+ + + +
+

Click inside the dashed rectangle

+ + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-manual.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-manual.html new file mode 100644 index 0000000000..4d77e677e4 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-manual.html @@ -0,0 +1,78 @@ + + + + img ismap attribute coordinate origin + + + + + + +
+ + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/list-of-available-images-does-not-coalesce-in-flight-requests.sub.tentative.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/list-of-available-images-does-not-coalesce-in-flight-requests.sub.tentative.html new file mode 100644 index 0000000000..52e91bc087 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/list-of-available-images-does-not-coalesce-in-flight-requests.sub.tentative.html @@ -0,0 +1,49 @@ + + +List of available images does not coalesce in-flight requests + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/list-of-available-images-matching.https.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/list-of-available-images-matching.https.html new file mode 100644 index 0000000000..4843d21915 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/list-of-available-images-matching.https.html @@ -0,0 +1,68 @@ + + +List of available images tuple-matching logic + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/move-element-and-scroll.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/move-element-and-scroll.html new file mode 100644 index 0000000000..3c95fae5bf --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/move-element-and-scroll.html @@ -0,0 +1,36 @@ + + + Images with loading='lazy' load being moved to another document + and then scrolled to + + + + + + +
+
+ + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/natural-size-orientation.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/natural-size-orientation.html new file mode 100644 index 0000000000..662dc0804f --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/natural-size-orientation.html @@ -0,0 +1,45 @@ + + +naturalWidth and naturalHeight on HTMLImageElement reflect orientation metadata + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/non-active-document.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/non-active-document.html new file mode 100644 index 0000000000..6072138cb3 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/non-active-document.html @@ -0,0 +1,52 @@ + + +img in non-active document should not perform loads + + +
+ + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/nonexistent-image.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/nonexistent-image.html new file mode 100644 index 0000000000..f58569ede0 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/nonexistent-image.html @@ -0,0 +1,21 @@ + + +Loading an nonexisting image should fail; triggering appropriate events + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/not-rendered-below-viewport-image-loading-lazy.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/not-rendered-below-viewport-image-loading-lazy.html new file mode 100644 index 0000000000..401771565a --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/not-rendered-below-viewport-image-loading-lazy.html @@ -0,0 +1,63 @@ + + + Below-viewport loading=lazy not-rendered images should never load, + even when scrolled into view + + + + + + + + + + + + + + + +
+ + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/not-rendered-dimension-getter.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/not-rendered-dimension-getter.html new file mode 100644 index 0000000000..4d929fd8b1 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/not-rendered-dimension-getter.html @@ -0,0 +1,22 @@ + + +Image intrinsic dimensions are returned if the image isn't rendered + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/not-rendered-image-loading-lazy.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/not-rendered-image-loading-lazy.html new file mode 100644 index 0000000000..25aaedb2b2 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/not-rendered-image-loading-lazy.html @@ -0,0 +1,49 @@ + + + In-viewport loading=lazy not-rendered images should never load + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/null-image-source.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/null-image-source.html new file mode 100644 index 0000000000..8999276503 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/null-image-source.html @@ -0,0 +1,30 @@ + + +Null image source check for src, srcset and picture parent + + +
+ + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/picture-loading-lazy.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/picture-loading-lazy.html new file mode 100644 index 0000000000..08c01616bd --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/picture-loading-lazy.html @@ -0,0 +1,64 @@ + + + Images with loading='lazy' in picture elements load when near the viewport + + + + + + + + + + + + + + +
+ + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/relevant-mutations.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/relevant-mutations.html new file mode 100644 index 0000000000..2f1031bf83 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/relevant-mutations.html @@ -0,0 +1,643 @@ + +img relevant mutations + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/remove-element-and-scroll.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/remove-element-and-scroll.html new file mode 100644 index 0000000000..8e7fa1bfbf --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/remove-element-and-scroll.html @@ -0,0 +1,32 @@ + + + Images with loading='lazy' load being removed and then scrolled to + + + + + + + +
+
+ + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/blue-10.png b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/blue-10.png new file mode 100644 index 0000000000..62949e08d8 Binary files /dev/null and b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/blue-10.png differ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/cat.jpg b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/cat.jpg new file mode 100644 index 0000000000..a4f14f54d6 Binary files /dev/null and b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/cat.jpg differ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/green.png b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/green.png new file mode 100644 index 0000000000..25b76c3c6f Binary files /dev/null and b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/green.png differ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image-and-stash.py b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image-and-stash.py new file mode 100644 index 0000000000..d16a3e591d --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image-and-stash.py @@ -0,0 +1,44 @@ +# This is a simple implementation of a server-side stash that supports two +# operations: +# - increment: +# Increments a value in the stash keyed by a given uuid, and returns an +# image file +# - read: +# Returns the value in the stash keyed by a given uuid or 0 otherwise. +# This is a read-only operation, and does not remove the value from the +# stash as-is the default WPT stash behavior: +# https://web-platform-tests.org/tools/wptserve/docs/stash.html. + +import os + +from wptserve.utils import isomorphic_decode + +def main(request, response): + if b"increment" in request.GET: + uuid = request.GET[b"increment"] + + # First, increment the stash value keyed by `uuid`, and write it back to the + # stash. Writing it back to the stash is necessary since `take()` actually + # removes the value whereas we want to increment it. + stash_value = request.server.stash.take(uuid) + if stash_value is None: + stash_value = 0 + request.server.stash.put(uuid, stash_value + 1) + + # Return a basic image. + response_headers = [(b"Content-Type", b"image/png")] + image_path = os.path.join(os.path.dirname(isomorphic_decode(__file__)), u"image.png") + return (200, response_headers, open(image_path, mode='rb').read()) + + elif b"read" in request.GET: + uuid = request.GET[b"read"] + stash_value = request.server.stash.take(uuid) + + if stash_value is None: + stash_value = 0 + # Write the stash value keyed by `uuid` back to the stash. This is necessary + # because `take()` actually removes it, but we want a read-only read. + request.server.stash.put(uuid, stash_value); + return (200, [], str(stash_value)) + + return (404 , [], "Not found") diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image-loading-lazy-below-viewport.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image-loading-lazy-below-viewport.html new file mode 100644 index 0000000000..f25bd6f4d0 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image-loading-lazy-below-viewport.html @@ -0,0 +1,22 @@ + +
+ + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image-loading-lazy-in-viewport.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image-loading-lazy-in-viewport.html new file mode 100644 index 0000000000..bafdacc883 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image-loading-lazy-in-viewport.html @@ -0,0 +1,20 @@ + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image.png b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image.png new file mode 100644 index 0000000000..b712825093 Binary files /dev/null and b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image.png differ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/newwindow.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/newwindow.html new file mode 100644 index 0000000000..735b8f6213 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/newwindow.html @@ -0,0 +1,2 @@ + +
diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/red.png b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/red.png new file mode 100644 index 0000000000..57bf3ddc52 Binary files /dev/null and b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/red.png differ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/referrer-checker-img.py b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/referrer-checker-img.py new file mode 100644 index 0000000000..bb2071cb97 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/referrer-checker-img.py @@ -0,0 +1,14 @@ +import os + +from wptserve.utils import isomorphic_decode + +# Returns a valid image response when request's |referrer| matches +# |expected_referrer|. +def main(request, response): + referrer = request.headers.get(b"referer", b"") + expected_referrer = request.GET.first(b"expected_referrer", b"") + response_headers = [(b"Content-Type", b"image/png")] + if referrer == expected_referrer: + image_path = os.path.join(os.path.dirname(isomorphic_decode(__file__)), u"image.png") + return (200, response_headers, open(image_path, mode='rb').read()) + return (404, response_headers, u"Not found") diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/sw.js b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/sw.js new file mode 100644 index 0000000000..8bd079f790 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/sw.js @@ -0,0 +1,20 @@ +addEventListener('install', (event) => { + skipWaiting(); +}); + +addEventListener('activate', (event) => { + event.waitUntil(clients.claim()); +}); + +async function broadcast(msg) { + const allClients = await clients.matchAll(); + for (const client of allClients) { + client.postMessage(msg); + } +} + +addEventListener('fetch', (event) => { + event.waitUntil( + broadcast({ url: event.request.url, mode: event.request.mode }) + ) +}); diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/sw.js.headers b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/sw.js.headers new file mode 100644 index 0000000000..3c534471c8 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/sw.js.headers @@ -0,0 +1 @@ +Service-Worker-Allowed: /html/semantics/embedded-content/the-img-element/ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/responsive-image-select-print-ref.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/responsive-image-select-print-ref.html new file mode 100644 index 0000000000..7189a57642 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/responsive-image-select-print-ref.html @@ -0,0 +1,4 @@ + + +
+ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/responsive-image-select-print.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/responsive-image-select-print.html new file mode 100644 index 0000000000..60b061f14a --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/responsive-image-select-print.html @@ -0,0 +1,12 @@ + +Test print result of responsive image + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/scrolling-below-viewport-image-lazy-loading-in-iframe.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/scrolling-below-viewport-image-lazy-loading-in-iframe.html new file mode 100644 index 0000000000..3c26323426 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/scrolling-below-viewport-image-lazy-loading-in-iframe.html @@ -0,0 +1,32 @@ + +Scrolling a lazy loaded image into view in an iframe + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/implicit-sizes-ignores-width.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/implicit-sizes-ignores-width.html new file mode 100644 index 0000000000..db61db351e --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/implicit-sizes-ignores-width.html @@ -0,0 +1,19 @@ + +Implicit sizes ignores width + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-display-none.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-display-none.html new file mode 100644 index 0000000000..6aa77ebf85 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-display-none.html @@ -0,0 +1,7 @@ + +img parse a sizes attribute (display:none) + + +
+ + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-quirks-mode.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-quirks-mode.html new file mode 100644 index 0000000000..2150192d29 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-quirks-mode.html @@ -0,0 +1,7 @@ + +img parse a sizes attribute (quirks mode) + + +
+ + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-standards-mode.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-standards-mode.html new file mode 100644 index 0000000000..6e70c88396 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-standards-mode.html @@ -0,0 +1,7 @@ + +img parse a sizes attribute (standards mode) + + +
+ + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-width-1000px.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-width-1000px.html new file mode 100644 index 0000000000..ab3f69e058 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-width-1000px.html @@ -0,0 +1,7 @@ + +img parse a sizes attribute (width:1000px) + + +
+ + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-001-ref.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-001-ref.html new file mode 100644 index 0000000000..68466ae94d --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-001-ref.html @@ -0,0 +1,4 @@ + +Test reference + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-001.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-001.html new file mode 100644 index 0000000000..51f8145bf9 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-001.html @@ -0,0 +1,20 @@ + + +Image intrinsic size specified via sizes attribute reacts properly to media changes + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-002.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-002.html new file mode 100644 index 0000000000..6c64b3da39 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-002.html @@ -0,0 +1,33 @@ + + +Image intrinsic size specified via sizes attribute reacts properly to media changes in Shadow DOM + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/support/parse-a-sizes-attribute.js b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/support/parse-a-sizes-attribute.js new file mode 100644 index 0000000000..62ad00a468 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/support/parse-a-sizes-attribute.js @@ -0,0 +1,29 @@ +setup({explicit_done:true}); + +function check(p, iframe) { + var current = p.firstElementChild; + var ref_sizes = current.getAttribute('sizes'); + var expect = current.currentSrc; + if (expect) { + expect = expect.split('?')[0]; + } + while (current = current.nextElementSibling) { + test(function() { + if (expect === '' || expect === null || expect === undefined) { + assert_unreached('ref currentSrc was ' + format_value(expect)); + } + var got = current.currentSrc; + assert_greater_than(got.indexOf('?'), -1, 'expected a "?" in currentSrc'); + got = got.split('?')[0]; + assert_equals(got, expect); + }, current.outerHTML + ' ref sizes=' + format_value(ref_sizes) + ' (' + iframe.getAttribute('data-desc') + ')'); + } +} + +onload = function() { + var iframe = document.querySelector('iframe'); + [].forEach.call(iframe.contentDocument.querySelectorAll('p'), function(p) { + check(p, iframe); + }); + done(); +} diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/support/sizes-iframed.sub.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/support/sizes-iframed.sub.html new file mode 100644 index 0000000000..7602dd8fce --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/sizes/support/sizes-iframed.sub.html @@ -0,0 +1,187 @@ + + + + +

+ + +

+ + +

+ + +

+ + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/source-media-outside-doc.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/source-media-outside-doc.html new file mode 100644 index 0000000000..5997e14e4b --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/source-media-outside-doc.html @@ -0,0 +1,50 @@ + +Image source selection using media queries is performed for img elements outside the document + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/avoid-reload-on-resize.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/avoid-reload-on-resize.html new file mode 100644 index 0000000000..52366dcaa7 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/avoid-reload-on-resize.html @@ -0,0 +1,20 @@ + +Avoid srcset image reloads when viewport resizes + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/common.js b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/common.js new file mode 100644 index 0000000000..d4d2c7534c --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/common.js @@ -0,0 +1,25 @@ +setup({explicit_done:true}); + +function check(img) { + var name = format_value(img.getAttribute('srcset')); + if (img.hasAttribute('sizes')) { + name += ' sizes=' + format_value(img.getAttribute('sizes')); + } + if (img.hasAttribute('data-desc')) { + name += ' (' + img.getAttribute('data-desc') + ')'; + } + test(function() { + var expect = img.dataset.expect; + if ('resolve' in img.dataset) { + var a = document.createElement('a'); + a.href = expect; + expect = a.href; + } + assert_equals(img.currentSrc, expect); + }, name); +} + +onload = function() { + [].forEach.call(document.images, check); + done(); +}; diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/parse-a-srcset-attribute.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/parse-a-srcset-attribute.html new file mode 100644 index 0000000000..ce1e4cebe5 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/parse-a-srcset-attribute.html @@ -0,0 +1,245 @@ + +img parse a srcset attribute + + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/resources/image.png b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/resources/image.png new file mode 100644 index 0000000000..d26878c9f2 Binary files /dev/null and b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/resources/image.png differ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/resources/image.png.headers b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/resources/image.png.headers new file mode 100644 index 0000000000..edaec7ad15 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/resources/image.png.headers @@ -0,0 +1,3 @@ +Cache-Control: no-store + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/resources/resized.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/resources/resized.html new file mode 100644 index 0000000000..6fb6847a66 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/resources/resized.html @@ -0,0 +1,2 @@ + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/select-an-image-source.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/select-an-image-source.html new file mode 100644 index 0000000000..292395d3ae --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/select-an-image-source.html @@ -0,0 +1,20 @@ + +img select an image source + + + +
+ + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/srcset-media-dynamic.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/srcset-media-dynamic.html new file mode 100644 index 0000000000..2cc74e2b8f --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/srcset/srcset-media-dynamic.html @@ -0,0 +1,25 @@ + +source element in picture handles dynamic media change correctly. + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/support/external-sheet.svg b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/support/external-sheet.svg new file mode 100644 index 0000000000..fd2eda7164 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/support/external-sheet.svg @@ -0,0 +1,4 @@ + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/support/red-bg.css b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/support/red-bg.css new file mode 100644 index 0000000000..da9af10628 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/support/red-bg.css @@ -0,0 +1,2 @@ +:root { background: red } + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/svg-img-with-external-stylesheet-ref.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/svg-img-with-external-stylesheet-ref.html new file mode 100644 index 0000000000..fdab582933 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/svg-img-with-external-stylesheet-ref.html @@ -0,0 +1,4 @@ + +Test reference +

You should see a green square below.

+
diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/svg-img-with-external-stylesheet.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/svg-img-with-external-stylesheet.html new file mode 100644 index 0000000000..a09dd7cc54 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/svg-img-with-external-stylesheet.html @@ -0,0 +1,6 @@ + +An img element with an svg src should not load external resources from the svg file. + + +

You should see a green square below.

+ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-media.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-media.html new file mode 100644 index 0000000000..dd679ef571 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-media.html @@ -0,0 +1,32 @@ + + +img update media + + + + +
+ + + + + \ No newline at end of file diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-src-complete.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-src-complete.html new file mode 100644 index 0000000000..de3926a296 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-src-complete.html @@ -0,0 +1,25 @@ + + +Changing the img src should retain the 'complete' property + + +

+ diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-the-image-data/current-request-microtask.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-the-image-data/current-request-microtask.html new file mode 100644 index 0000000000..125b37eadb --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-the-image-data/current-request-microtask.html @@ -0,0 +1,38 @@ + +An img's current request should be updated in a microtask after selecting an image source + + +
+ + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-the-image-data/fail-to-resolve.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-the-image-data/fail-to-resolve.html new file mode 100644 index 0000000000..959ceaa979 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-the-image-data/fail-to-resolve.html @@ -0,0 +1,25 @@ + +img update the image data: fail to resolve URL + + +
+ + + + + + + diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-the-source-set.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-the-source-set.html new file mode 100644 index 0000000000..063667baa9 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-the-source-set.html @@ -0,0 +1,140 @@ + +img update the source set + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + +
foo
+
+

+

+
+
+
+
+
+
+
+ + + +
+
+ + + +
+
+
+ + + +
+
+
+
+
+
+
+
+
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + +
foo
+

+
+
+
+
+
+ + + +
+
+
+ + + +
diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/usemap-casing.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/usemap-casing.html new file mode 100644 index 0000000000..c28f667ff3 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/usemap-casing.html @@ -0,0 +1,93 @@ + + +img usemap case-sensitive + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + -- cgit v1.2.3