A bonafide CSS trick by Franklin Ta. Position the images on top of each other at 50% opacity and inverted colors. Or, as Bennett Feely pointed out, use
background-blend-mode: difference; if they are background images.
Direct Link to Article — Permalink
Image Diffing in CSS is a post from CSS-Tricks