-
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
Difference in inherited styles between Chrome & other browsers #531
Comments
This sounds like an issue on your end with native SD. Styles don't penetrate in. Safari and Firefox look fine because they're using the polyfill. http://stackoverflow.com/questions/24083148/figuring-out-why-custom-element-is-shown-in-safari-and-firefox-but-not-in-chrom/24086000#24086000 |
Peter, this is a rather fundamental issue at the heart of web components I see how in the long run the style encapsulation is a good thing, but in note, some things leak thru such as fonts, so you'll want to consider that On Fri, Jun 20, 2014 at 11:44 AM, Eric Bidelman [email protected]
|
For Polymer's site, we chose to have each component include it's own .sass file. That file loads a shared
The shadow root still inherits CSS properties that are inheritable. |
I've been wondering how to address this too; it's currently the biggest issue I'm facing adopting polymer, even for projects with a relatively limited audience where some R&D would be acceptable. @ebidel doesn't including the common reset sheet / colour schema / etc. create a fair amount of overhead for each element? |
for us, with css generation tools where they are this isn't about how to
|
On Sat, Jul 5, 2014 at 8:10 AM, Douglas Hubler [email protected]
Blink has internal plumbing for stylesheet sharing:
|
Am working on a custom element using Polymer polyfill, here: https://github.com/stopsatgreen/leaflet-map
Displays fine in Firefox & Safari, but in Chrome (stable) the styling is all over the place; looks like no CSS rules are being inherited inside the Shadow DOM. No errors are reported in the console.
The text was updated successfully, but these errors were encountered: