-
Notifications
You must be signed in to change notification settings - Fork 2k
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
style include modules should be prepended before text in style #4770
Comments
So to reiterate this conversation, style modules in Polymer 2 are now appended after local shadow dom styles in an element, which can override those styles when css specificity is the same. I realized that while migrating my app's elements, which all contained a css reset imported as a style module. My tweet was because I thought it was a normal new behavior (it's not a bug it's a feature right? 😛 ) While you guys fix that behavior, as a workaround, I'm trying to override the way Polymer templates get loaded following @kevinpschaaf 's snippet. I'm going on vacation next week though so more news on that workaround when I get back, for folks having the same problem. |
Hmm, I made a style import and it appears to be placed before the elements' styling, as expected: http://jsbin.com/duwewuq/edit?html,output Is there a different setup you would have? Do you mean |
So, it looks like the ordering problem is only for Polymer v1: https://mercury-grenade.glitch.me/ |
Ah, it is more subtle. In 1.x, the ordering of |
This is still slightly different from 1.x, which used ordering, but most `<link rel="import" type="css">` style imports came before the template. Fixes #4770
Somehow #2357 might have appeared again in 2.x.
The text was updated successfully, but these errors were encountered: