0
我有一个custom-styles
文件,它定义这样的HTML和身体:聚合物“定制式”的身体和HTML样式泄漏到本地DOM
<style is="custom-style">
html, body { color: #ffffff; background-color: #212121; }
</style>
我的问题是,这些样式泄漏到自定义元素在他们的本地dom中,使字体颜色变白。 https://www.polymer-project.org/1.0/docs/devguide/styling.html#custom-style
我的问题是:这是默认的行为或者这是一个错误
这不应该根据文档在这里发生了什么?
感谢