是我一个人还是上次发布的聚合物修剪了小胡子?我发誓这个代码片段(http://jsbin.com/eRimiJo/10/edit)上周完美运行,现在它没用了,因为小胡子魔法似乎不再起作用了:
<script src="http://www.polymer-project.org/polymer.min.js"></script>
<polymer-element name="test-attr" attributes="width" noscript>
<template>
<style>
@host {
:scope {
display: block;
width: {{width}}px;
height: 100px;
background-color: black;
}
}
</style>
<content></content>
</template>
</polymer-element>
<test-attr width="100">Hello</test-attr>
编辑:编辑以删除明显的错别字