Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mudoo opened this issue Jan 25, 2016 · 2 comments
Labels

Comments

@mudoo
Copy link

mudoo commented Jan 25, 2016

使用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就好

@painty
Copy link

painty commented Mar 22, 2016

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

@oxUnd
Copy link
Contributor

oxUnd commented Mar 22, 2016

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

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

@oxUnd oxUnd added the bug label Mar 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants