Dynamically inject shared styles in polymer element (polymer 1.2.3)
I do have several nested polymer elements created by myself. Currently with using polymers shared styles I'm able to inject custom styling into other elements. Unfortunately this approach is restricted to static use. So at implementation time I do need to know which Element should use which shared style by import the shared style module with <link rel="import" href="my-shared-style.html"> and <style include="my-shared-style"></style> . But in my use case I do need to inject shared styles into polymer elements at runtime. Is there any possibility to achieve this? UPDATE I tried following