News for hackers. Stuff that matters.
Re:JPEG XL support has officially been removed from Chromium by charcircuit on Saturday December 10, 2022 @01:33PM (#33935295)
>It is very hard to check if a certain image is visible or not

Canvases are rectangles. The viewport is a rectangle. Checking if rectangles overlap is easy.

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).