From 63e7ab036052a41cf3b2f625acb82de4e46b86a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 23 Oct 2024 19:50:00 +0000 Subject: [PATCH] Add a test for setting .src then .loading = "lazy", ensuring load is not sync. src-then-lazy-load.html passes in Chromium which means that the initial diagnostic wasn't quite accurate. (you can test that by adding a dummy random query string somewhere in the original test-case from the blocked bug). I still think the test is still probably worth landing. Add a test for out of band loads somehow triggering lazy loads, see linked spec issue. Differential Revision: https://phabricator.services.mozilla.com/D226706 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1926666 gecko-commit: bc523d3640536476fa895d1e598a3c5c0c9bf614 gecko-reviewers: jrmuizel --- .../lazy-out-of-band-load.html | 39 +++++++++++++++++++ .../src-then-lazy-load.html | 27 +++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 html/semantics/embedded-content/the-img-element/update-the-image-data/lazy-out-of-band-load.html create mode 100644 html/semantics/embedded-content/the-img-element/update-the-image-data/src-then-lazy-load.html diff --git a/html/semantics/embedded-content/the-img-element/update-the-image-data/lazy-out-of-band-load.html b/html/semantics/embedded-content/the-img-element/update-the-image-data/lazy-out-of-band-load.html new file mode 100644 index 00000000000000..eb074003cc8e39 --- /dev/null +++ b/html/semantics/embedded-content/the-img-element/update-the-image-data/lazy-out-of-band-load.html @@ -0,0 +1,39 @@ + +Lazy loaded image doesn't get loaded eagerly after another image gets loaded with the same source + + + + + diff --git a/html/semantics/embedded-content/the-img-element/update-the-image-data/src-then-lazy-load.html b/html/semantics/embedded-content/the-img-element/update-the-image-data/src-then-lazy-load.html new file mode 100644 index 00000000000000..94bbfe221cb8fe --- /dev/null +++ b/html/semantics/embedded-content/the-img-element/update-the-image-data/src-then-lazy-load.html @@ -0,0 +1,27 @@ + +Image shouldn't load synchronously out of the document. + + + +