Open Bug 1506926 Opened 6 years ago Updated 2 years ago

Consider optimizing the way pixel difference is calculated for color contrast highlighter.


(DevTools :: Accessibility Tools, enhancement)



(Not tracked)


(Reporter: yzen, Unassigned)



The tool can get slow if we have a lot of pixels to go through.
On a big text node (font-size: 100em, or smaller but with a text-shadow) I could see a noticeable freeze on my machine.

One solution could introduce an upper bound (either for this loop or for the size of the window "screenshot" we take).

Another solution could be scaling the image to something smaller, it will probably still yield reasonable results.
See Also: → 1514856
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.