PolymerElements / iron-image

Image element with sizing and preloading options
https://www.webcomponents.org/element/PolymerElements/iron-image
37 stars 43 forks source link

Please allow iron-icons as placeholders #139

Open davidmaxwaterman opened 5 years ago

davidmaxwaterman commented 5 years ago

I have an iron-iconset-svg and would like to use one of them as a placeholder for an iron-image, something like this:

  <iron-image placeholder="image:image" src="takes-ages.jpg"></iron-image>

https://jsbin.com/qomohexoxa/edit?html,output

I'm using iron-image#2.2.1.

I notice:

https://github.com/PolymerElements/iron-image/issues/84

showing how to use a data-uri, but I'd rather not duplicate the icons in my iron-iconset-svg.

Any way to do this that I'm missing?