Reputation: 11
Hello I am trying to use the Polymer attributes in css.
This is my code:
background: url( {{ image }} );
but it doesn't seem to work and outputs
url('%7B%7B%20image%20%7D%7D');
Upvotes: 1
Views: 595
Reputation: 45331
I don't think Polymer currently supports template binding within a <style>
tag. You could instead use an inline style attribute on the element, or you could add an imageChanged handler and use the cssom to edit the stylesheet.
Upvotes: 1