如何解决lesslint在供应商前缀属性上抛出已知属性错误
我正在使用grunt-lesslint来对一个项目做绒毛,看起来它在使用csslint的幕后。
奇怪的是,在整理代码时出现此错误
Expected (start | end | center | justify) but found 'distribute'. Properties should be known (listed in CSS3 specification) or be a vendor-prefixed property. (known-properties)
>> web/css/source/utilities/_flex.less [Line 41,Column 5]: -ms-flex-pack: distribute;
擦?根据{{3}}
所有供应商前缀的属性(以-开头的属性)都将被忽略 因为供应商可以随时添加自己的属性, 并且没有这些属性的规范列表。
引起投诉的少量代码
.flex--justify-around {
-ms-flex-pack: distribute;
justify-content: space-around;
}
根据the documentation,哪个看起来像是正确的值。
有什么想法吗?如何哄骗grunt-lesslint使这条线通过?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。