Re:JPEG XL support has officially been removed from Chromium
by lifthrasiir on Saturday December 10, 2022 @02:03PM
(#33935641)
The image is visible != the canvas and viewport overlaps, and this is not even a good enough approximation (the image can be obscured by other layers for example). Intersection Observer v2 takes us a bit closer but the visibility in this definition (not obscured at all) doesn't fully agree with what we want (has some pixels visible, some false positives allowed).
Canvases are rectangles. The viewport is a rectangle. Checking if rectangles overlap is easy.