Closed marcoscaceres closed 11 years ago
+1 Though not sure if Wilto's polyfill does work the exactly way the spec now says.
I've worked on @Wilto picture version: http://picturefill8.h011.attiks.com/core/modules/picture/picturefill/picturefill.js?v=0.1 feel free to use it.
@attiks thanks! @anselmh how should we handle this? Are you ok to add the polyfill or should we split up the task?
I am still thinking if that is the right way to go.
Decision between: 1) We should split real demos from polyfill demos > you get the real deal 2) only one demo which works for everyone > you don't get the real deal but a working demo
What do you think @marcoscaceres?
3) one demo that detects for
yeah, I was thinking 3 as well :)
Okay, thanks. So if anybody has time, feel free to add a pull-req. I can merge. Else it'll take some more days but I'll try my best.
Detecting support should be something like:
if(!("HTMLPictureElement" in window)){ //load polyfill }
I'll try to do this tomorrow and test it out.
Started work.
Made a new branch called polyfilled.
Ok, I think I'm done. @Wilto will review the demos on the weekend. @anselmh, feel free to also QA (make sure you grab the polyfilled branch). Once we have an ok, will push up to the server.
Oh, two things that still need to be checked/fixed:
Moved to gh-pages. We can files issues on separate bugs.
by gh-pages, I mean http://demos.responsiveimages.org has been updated :)
When we have time, we should make sure demos are polyfilled (if they are not already).
@Wilto has a
picture
compatible version of picturefill we can use already, I think.