scottjehl/picturefill — pull request #47 by zigotica (2012-10-27 22:48:46+00:00)
Title:  adds -webkit- prefix in javascript instead of HTML, for simplicity

Took me some minutes to see that I needed to add an additional `-webkit-min-device-pixel-ratio` for each data-media, which is cumbersome since we are already using javascript to fill the gaps. I just added the following into the script:
```
if( media && media.indexOf("min-device-pixel-ratio") > -1 && media.indexOf("-webkit-min-device-pixel-ratio") == -1 ) {
var webkitmedia = media.replace("min-device-pixel-ratio", "-webkit-min-device-pixel-ratio");
media = media +","+webkitmedia;
}
```