PolymerElements / iron-image

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

how to change the color of a placeholder svg image? #140

Open davidmaxwaterman opened 5 years ago

davidmaxwaterman commented 5 years ago

Description

Can't style placeholder svg image

Expected outcome

Way to style placeholder svg

Actual outcome

Nothing I try has any effect - tried the documented --iron-image-placeholder mixin, with both 'color: red' and also 'fill: red', to no effect.

Live Demo

https://jsbin.com/gudiyof/edit?html The example URL doesn't seem to work, but at least you can see the code.

Steps to reproduce

  1. Put an svg placeholder as a data URL.
  2. Attempt to change its color.

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