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:
Custom checkbox and radio <input>'s
Fancy image <hr>'s
Styling <menuitem>'s (if/when browsers support it)
(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:
<input>
's<hr>
's<menuitem>
's (if/when browsers support it)