Skip to content

'px' as '%' in calc  #6119

@zayn8888888

Description

@zayn8888888
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

^3.2.11

Environment

node 14.20.0 Edge 107.0.1418.52 VUE 3.2.13

Reproduction link

https://github.com/vueComponent/ant-design-vue/blob/main/components/timeline/style/index.less

Steps to reproduce

TimeLine.item, the css attribute in '.ant-timeline-item-tail' (Other similar too) ,calc(100%-10px),the result after compiling is calc(90%)

What is expected?

calc(100%-10px)

What is actually happening?

calc(90%)


the reason maybe is the translation compiling in Less,use " ~'' " is ok, calc ~'(100% - 10px)'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions