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

内置的transform方法在处理calc时有可能清掉空格导致出错 #111

Open
a755956503 opened this issue May 11, 2023 · 1 comment · May be fixed by #112
Open

内置的transform方法在处理calc时有可能清掉空格导致出错 #111

a755956503 opened this issue May 11, 2023 · 1 comment · May be fixed by #112

Comments

@a755956503
Copy link

🐛 bug 描述
内置的transform方法在处理样式时,遇到'()'时会根据空格分组处理然后合并,合并时会丢失空格,导致calc语法出错,具体出错如下:
image

📷 复现步骤
将example/logicalProperties中的paddingInline值修改为calc语法即可复现
image

🏞 期望结果
transform方法能够正确处理calc语法

💻 修复方法
是否可以使用数组保存中间状态
image

@a755956503 a755956503 linked a pull request May 11, 2023 that will close this issue
@Airkro
Copy link

Airkro commented Jun 5, 2023

相关问题:#96 , #92

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 a pull request may close this issue.

2 participants