fis-spriter-csssprites icon indicating copy to clipboard operation
fis-spriter-csssprites copied to clipboard

background-size有浏览器私有前缀时,正则匹配不严谨导致截断错误,遗留下私有前缀

Open mudoo opened this issue 9 years ago • 2 comments

使用autoprefixer自动添加私有前缀,正则不太严谨,导致background-size被截断,剩下-webkit-...如下

-webkit-background-size: 1rem 1.12rem;
          background-size: 1rem 1.12rem;
z-index: 10;

处理后变成了

-webkit-
z-index: 10;

再压缩下变成

-webkit-z-index: 10;

刚开始以为是autoprefixer的问题,只要修改下libs\css\rules.js就好

mudoo avatar Jan 25 '16 05:01 mudoo

我也遇到了,处理办法是在postpackager阶段使用autoprefixer

painty avatar Mar 22 '16 01:03 painty

@painty 其实你这个办法还不错

这个事情,待我把图片相关的东西搞定再来弄一下;

oxUnd avatar Mar 22 '16 02:03 oxUnd