Polymer core-icon is not displaying on Firefox but on Chrome

25 visualizações
Pular para a primeira mensagem não lida

niladri...@gmail.com

não lida,
22 de abr. de 2015, 02:21:5122/04/2015
para polym...@googlegroups.com

I am facing a strange problem with Polymer core-icon. Below is my snippet:

...
...
<link rel="import" href="../bower_components/core-icons/iconsets/social-icons.html">
...
...
<post-card id="card-1">
  <div>Something in bold!</div>
  <h2>My first post-card element with core-icon</h2>
  <p>Core-icon is not rendering properly on Firefox...Please help!</p>
  <core-icon class="large-icon" icon="android"></core-icon>
</post-card>

And my post-card element looks like this:

...
<div class="card-header" layout horizontal center>
  <content select="img"><img src="images/{{imgsrc}}" alt="" /></content>
  <content select="h2">{{heading}}</content>
</div>
<content select="p">{{para}}</content>
<content></content>
...

When I am running the above in Chrome the icon is rendering fine but on Firefox the icon is only flashing once and then disappears!

Rest of the content placed inside insertion point are rendering OK on both browsers.

Following screenshot shows what I have on different browsers:

enter image description here

For creating post-card element I have referred the following link: https://www.polymer-project.org/0.5/docs/start/tutorial/step-2.html

I have started with Polymer recently. Looking forward to expert help.

Thanks in advance!

Responder a todos
Responder ao autor
Encaminhar
0 nova mensagem