Polymer 2 css mixins 未生效

Polymer 2 css mixins not taking effect

我的 css mixins 似乎没有被应用,如此 plunker 所示。我可以知道为什么 color: green 没有被应用吗?谢谢

如果您使用 CSS mixins,则需要导入 CSS mixins polyfill。

<!-- import CSS mixins polyfill -->
<link rel="import" href="/bower_components/shadycss/apply-shim.html">

来源:Click here.

此外,您正在使用尚未导入的 custom-style。导入是必需的,因为您没有在该文件中也导入 polymer.html

<link rel="import" href="/bower_components/polymer/lib/elements/custom-style.html">

custom-style is not included with Polymer.Element and must be imported separately. custom-style is included with the legacy polymer.html import.

Working plunker.