-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement list of available images matching logic
https://bugs.webkit.org/show_bug.cgi?id=243790 Reviewed by Sihui Liu and Chris Dumez. Implement list of available images matching logic: https://html.spec.whatwg.org/multipage/images.html#updating-the-image-data:list-of-available-images This is restricted to lazy loading for now. * LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-available-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-use-list-of-available-images-expected.txt: * Source/WebCore/loader/ImageLoader.cpp: (WebCore::canReuseFromListOfAvailableImages): (WebCore::ImageLoader::updateFromElement): Canonical link: https://commits.webkit.org/269243@main
- Loading branch information
1 parent
7ca4198
commit 873115a
Showing
3 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...html/semantics/embedded-content/the-img-element/image-loading-lazy-available-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
|
||
|
||
FAIL The list of available images gets checked before deciding to make a load lazy assert_equals: The list of available images should be checked before delaying the image load expected 256 but got 0 | ||
PASS The list of available images gets checked before deciding to make a load lazy | ||
|
2 changes: 1 addition & 1 deletion
2
...dded-content/the-img-element/image-loading-lazy-use-list-of-available-images-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
|
||
FAIL Lazyload images can load immediately from the list of available images promise_test: Unhandled rejection with value: object "Error: The `loading=lazy` image should load immediately from the list of available images, beating this timeout promise." | ||
PASS Lazyload images can load immediately from the list of available images | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters