17

Is there a polyfill to handle CSS Background Sizing in Safari 4 (iOS) and IE

Rigel Glen
  • 1,289
  • 3
  • 14
  • 20
  • 1
    Modernizr is just a feature detection script, it containes the HTML5 Shim and thats the only polyfill Modernizr ships with – Rigel Glen Sep 28 '11 at 11:44
  • See also [Good “background-size: cover” fallbacks/shims/tricks for cross-browser compatibility on DIVs?](http://stackoverflow.com/questions/9330733/good-background-size-cover-fallbacks-shims-tricks-for-cross-browser-compatibi) – user Mar 08 '14 at 02:59

2 Answers2

7

could try this.

http://nooshu.com/jquery-plug-in-scalable-background-image

I'm in the process of looking as well.

Mike Doyle
  • 328
  • 2
  • 11
1

Allegedly this is a polyfill on GitHUb that enables CSS3 Background Size to work, but I'm still having issues figuring it out myself.

https://github.com/louisremi/background-size-polyfill

Let me know if you get it to work. I'm looking for something similar.

lockedown
  • 594
  • 6
  • 15
  • 1
    Spent few hours trying to get this script to work. Some slight changes did the job: ... The last string was the key in my case. Xml document must have closing tags, otherwise nobody would give a dime for how browser handles that. You may try it for yourself. – alexp Mar 13 '13 at 18:05
  • this tweak fixed the script for me, thanks for this! – loriensleafs Feb 28 '15 at 22:09