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

fix: 处理.5px等忽略小数首位0时rem计算异常的问题 #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tangxiangmin
Copy link

使用dart-sass时,当outputStyle配置项为压缩模式,会将0.5px等小于1的数字忽略首位0,最终输入.5px

这种数字单位在px2rem时会错误地忽略小数点.,被当做成5px,比如当remUnit为100时,计算输出的rem值变成了.0.05rem,导致最后的结果变成了0.05rem,结果扩大了10倍,因此需要修复一下

@ProfBramble
Copy link

@songsiqi 可以 cr 一下这个 pr 么,希望可以合并下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants