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)

defect

Tracking

()

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;

  1. Let delay load event be true if the img's lazy loading attribute is in the
    Eager state, and false otherwise.
  2. If the will lazy load image steps given the img return true, then run
    these steps:

And from the "will lazy load image steps";

  1. If img's lazy loading attribute is in the Lazy state, and img does not
    intersect the viewport, return true.
  2. 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.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.