alibaba-fusion / next

🦍 A configurable component library for web built on React.
https://fusion.design
MIT License
4.59k stars 591 forks source link

[Search]css-var中包含非法样式 #2505

Closed csr632 closed 3 years ago

csr632 commented 3 years ago

Component

Search

Steps to reproduce

https://unpkg.alipay.com/@alife/theme-xconsole-v4@0.4.13/dist/next-noreset.var.css

搜索 " \0" , 能看到 line-height: 30px \0;这样的样式

bindoon commented 3 years ago
   line-height: 34px \0;
      line-height: calc(var(--form-element-large-height, 36px) - var(--input-border-width, 1px)*2) \0;

\0 是为了兼容ie9, 目前这种用法不会影响现代浏览器吧。