A spec-compatible, unit-tested polyfill for <img srcset>