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

less calc修复功能 #35

Closed
otakustay opened this issue Apr 15, 2021 · 0 comments
Closed

less calc修复功能 #35

otakustay opened this issue Apr 15, 2021 · 0 comments

Comments

@otakustay
Copy link
Member

在不少第三方(甚至自己写的)的.less文件中,会有这样的:

width: calc(100px - @min-height);

这种写法默认是没有问题的,但在less 4.x下,配合类似less-plugins-functions这种极端hack的插件时,就会出大问题。

正确的写法需要是~"calc(100px - @{min-height})"。所以让reSKRipt内置一个功能,把所有不安全的calc都修复一下。

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

No branches or pull requests

1 participant