Phi*_*enn 6 google-chrome shadow-dom polymer
在编写Polymer概念证明时,我不断得到:
/deep/ combinator is deprecated. See https://www.chromestatus.com/features/6750456638341120 for more details.
Run Code Online (Sandbox Code Playgroud)
在谷歌浏览器的控制台中.
是否有办法在每次加载页面时都不会收到此警告?
您可能会看到此错误,因为您正在使用应用布局的类方法。如果您切换到使用自定义 CSS mixins,则不会收到错误。
所以只需导入:
<link rel="import" href="bower_components/iron-flex-layout/iron-flex-layout.html">
Run Code Online (Sandbox Code Playgroud)
而不是classes/iron-flex-layout.html(似乎是包含此文件导致了警告)
然后使用:
body {
@apply(--layout-vertical);
@apply(--layout-fullbleed);
}
Run Code Online (Sandbox Code Playgroud)
在你的风格中而不是:
<body class="layout vertical fullbleed">
Run Code Online (Sandbox Code Playgroud)
将类添加到您的 html 元素中。
这真的很遗憾,因为使用类是应用布局样式的一种更简洁直观的方式。
| 归档时间: |
|
| 查看次数: |
4517 次 |
| 最近记录: |