background-size-polyfill icon indicating copy to clipboard operation
background-size-polyfill copied to clipboard

Support elements that cannot have child elements

Open jefferyto opened this issue 11 years ago • 1 comments

(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:

  • Custom checkbox and radio <input>'s
  • Fancy image <hr>'s
  • Styling <menuitem>'s (if/when browsers support it)

jefferyto avatar Dec 02 '13 08:12 jefferyto

Was this ever fixed?

andruby avatar Aug 11 '14 09:08 andruby