In this case it has global scope because it contains @font-face definitions.
Sönke--
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
Visit this group at http://groups.google.com/group/polymer-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/2d500e3b-b23f-49fb-b858-51b6e4de0af6%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I've noticed that Chrome (I'm not using Canary) has downloaded this stylesheet twice.
Also, I can't seem to get applyAuthorStyles to work- I'm not sure how.
--
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
Visit this group at http://groups.google.com/group/polymer-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/b092745d-43ac-4012-85e2-d66323899bf2%40googlegroups.com.
Including a stylesheet like this is the recommended way to share styles between elements right now.The ShadowDOM spec will likely provide api to efficiently share stylesheets. The spec bug is here: https://www.w3.org/Bugs/Public/show_bug.cgi?id=15818.
In this case it has global scope because it contains @font-face definitions.The polymer-scope attribute should be set to global only for a sheet containing just rules that need to be in the global scope like @font-face. That these don't currently work in ShadowDOM is an implementation bug in Chrome. A global sheet will only be included in the global scope once so it's safe to use it wherever you need it. You should use a separate shared stylesheet for ShadowDOM styles.