我们一直在我们的产品中使用反tags,但现在随着新的HTML5标签和css3样式的引入,它成为了一个痛点,并允许特定的样式具有定义的值。
有没有完全支持新标签和样式的开源反萨米策略文件?所有联机可用的开放反萨米策略文件都不支持HTML5和CSS3。
另一种选择
如果我必须更改策略文件来调整所有的HTML5标记和CSS3样式,有没有一种方法可以调整样式,使我至少不需要调整浏览器前缀。例如,如果我们有办法让browser-radius用于"-moz-border-radius“或"-webkit-border-radius”或"border-radius“
例如:
<common-attributes>
<attribute name="border-radius" description="The 'id' of any HTML attribute should not contain anything besides letters and numbers">
<regexp-list>
<regexp value="<regular-expression>"/>
</regexp-list>
</attribute>
</common-attributes>发布于 2013-12-18 14:35:46
作为这个css属性,您可以在css-rules部分中定义。此外,根据边界半径属性,w3schools -radius属性接受长度或百分比,因此您可以使用已经可用的正则表达式长度和百分比。
<property name="border-radius" description="This property allows you to add rounded borders to elements">
<regexp-list>
<regexp name="percentage"/>
<regexp name="length"/>
</regexp-list>
</property>https://stackoverflow.com/questions/20623997
复制相似问题