JimBobSquarePants / srcset-polyfill

An image srcset polyfill that provides fallback behaviour for browsers that do not support the srcset attribute.
http://jimbobsquarepants.github.io/srcset-polyfill/
18 stars 8 forks source link

Chrome 34+ partial support problems #6

Open ckrack opened 10 years ago

ckrack commented 10 years ago

Chrome 34+ (i guess newest webkit) includes support for the resolution modifier. So 2x, 1x works, but the specification of images by certain dimensions is not supported.

Can the polyfill detect this and add the support for the media query part including dimension queries?

JimBobSquarePants commented 10 years ago

In all honestly I've not looked at this for a very long time, I'm not even sure it conforms to the current spec. I'll have to do some reading to see what I can do.

ckrack commented 10 years ago

I guess it'd be solved by turning of the check for the support, relying on the polyfill solely for now. But from what i've read we're supposed to use the picture element rather than srcset when delivering images in different dimensions.

JimBobSquarePants commented 10 years ago

Well that's my thought now also; this was really an experiment to get people thinking about it.

I would recommend picturefill over anything else.