Bulletproof `srcset` candidate processing, and tests to back it up.