Open
Bug 1612780
Opened 6 years ago
Updated 3 years ago
Make image-loading-lazy-{below,in}-viewport-dynamic.tentative.html pass
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
NEW
People
(Reporter: hiro, Unassigned)
References
()
Details
This will be another follow-up issue on lazy-loading.
image-loading-lazy-below-viewport-dynamic.tentative.html and image-loading-lazy-in-viewport-dynamic.tentative.html are supposed to expect that changing loading attribute to "eager" before window load event is fired doesn't block the window load event in the case where the original attribute value was "lazy".
From the relevant part of the spec;
- Let delay load event be true if the img's lazy loading attribute is in the
Eager state, and false otherwise.- If the will lazy load image steps given the img return true, then run
these steps:
And from the "will lazy load image steps";
- If img's lazy loading attribute is in the Lazy state, and img does not
intersect the viewport, return true.- Return false.
With our(my) initial naive implementation for lazy-loading, there is no point to hook the lazy loading attribute check. And there is an ongoing discussion to write this behavior more detail in the spec. So I am going to defer these two tests into this bug.
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•