Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<link> doesn't work with XD resources #116

Closed
mattiasmak opened this issue Apr 30, 2013 · 3 comments
Closed

<link> doesn't work with XD resources #116

mattiasmak opened this issue Apr 30, 2013 · 3 comments

Comments

@mattiasmak
Copy link

This is perhaps a known issue, but I'll report it anyway.

Inside a component, the link-tag for referencing css is not working at all for me. To get around the problem I use @import inside the style tag.

<style> @import url(http://url.com/mystyle.css); </style>
@sorvell
Copy link
Contributor

sorvell commented Apr 30, 2013

Same domain or CORS enabled resources should work within the toolkit as below. For other resources, using @import like you did is correct.

 <element name="x-foo">
   <link rel="stylesheet" href="foo.css">
   <template>
   ...
   </template
   <script>
     Toolkit.register(this);
   </script>
 </element>

In this case we load the < link > and create a style element containing the sheet's content inside the element template.

@ebidel
Copy link
Contributor

ebidel commented Apr 30, 2013

@ghost ghost assigned ebidel Sep 25, 2013
@tjsavage tjsavage added the 0.5 label May 21, 2015
@tjsavage
Copy link
Contributor

Closing this issue due to age and the release of version 1 release of Polymer - please feel free to re-open if this is incorrect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants