Skip to content

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

@a755956503

Description

@a755956503

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

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

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions