From 4880917b279eb8958fe8d95d2cc0d0ff054fee83 Mon Sep 17 00:00:00 2001 From: Dominic Farolino Date: Thu, 21 May 2020 10:22:21 +0000 Subject: [PATCH] Bug 1638176 [wpt PR 23623] - [Lazyload]: Add image lazy loading relevant mutation tests, a=testonly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic update from web-platform-tests [Lazyload]: Add image lazy loading relevant mutation tests The bug https://crbug.com/1082961 outlines an issue whereby when relevant mutations take place on a deferred loading=lazy image, these mutations cause the image to be fetched immediately, which is the incorrect behavior. Bug: 1082961 Change-Id: I2eaeb0815266df55aa451e02cc29f91ca065c781 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2202684 Commit-Queue: Dominic Farolino Reviewed-by: Fredrik Söderquist Cr-Commit-Position: refs/heads/master@{#769299} -- wpt-commits: 64380e1f01ea0a603ec65ff2c3101239aceada00 wpt-pr: 23623 --- ...image-loading-lazy-relevant-mutations.html | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-relevant-mutations.html 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 000000000000..cd4b99dd458c --- /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 + + + + + + + + + +
+ + + + + +