Well, there are a number of factors. First, you cannot override a class defined inside a component. Currently, you can apply your own style to a component if this element does not define its own styles. For example, you can change the font size to 'p' elements inside a component. Or say div#someid { color: red; } div#someid { color: red; } , but you cannot override the class or add definitions to the class.
The fact that you can change styles at all, if this is not explicitly allowed, is a bug in web_ui. Currently tracked as: Issue 374 : Support for styles-authors-styles.
Ideally, when full support is implemented, you cannot apply your own styles to the web component unless explicitly permitted by the web component itself. For more information on apply-author-styles and related reset-style-inheritance, see the Shadow DOM 201 tutorial.
source share