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

Consider adding support for loading user selectable css resources per element #219

Closed
sorvell opened this issue Jul 25, 2013 · 1 comment

Comments

@sorvell
Copy link
Contributor

sorvell commented Jul 25, 2013

Support for customizing styling in custom elements using ShadowDom is still evolving at the spec level.

As a workaround until this settles down, we could consider adding a system for customizing the location of the css resources a custom element needs.

Perhaps something like:

<script>
  Polymer.resources({
    'polymer-ui-toolbar': 'http://some-base-path'
  });
</script>

Then in polymer-ui-toolbar a specific resource that does not have an absolute url could be path adjusted by this base path:

<link rel="stylesheet" href="styles.css">

loads from http://some-base-path/styles.css.

@sorvell sorvell added wontfix and removed wontfix labels Aug 11, 2014
@sorvell
Copy link
Contributor Author

sorvell commented Aug 11, 2014

We've decided against this.

@sorvell sorvell closed this as completed Aug 11, 2014
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

1 participant