Just what I was thinking. Can't you render the DOM to a canvas and then access the pixels in that?
> Visited-link styles aren't applied to links rendered in SVG images, so history information can't be retrieved, and native themes aren't rendered in SVG images, which makes it harder to determine the user's platform.