louisremi / background-size-polyfill

Adds support for background-size "cover" and "contain" to IE8
http://louisremi.github.com/background-size-polyfill/
MIT License
1.26k stars 359 forks source link

Support elements that cannot have child elements #34

Open jefferyto opened 10 years ago

jefferyto commented 10 years ago

(This is a continuation of #33)

The CSS spec says background-image applies to "all elements", so it would be good if this worked with (visible) elements that cannot have child elements. (The polyfill currently appends a <img> to the element to fake a background image, so it cannot work with elements like <img>.)

A few use cases I can think of:

andruby commented 10 years ago

Was this ever fixed?