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

fix: border radius of one percentage value #1121

Merged
merged 2 commits into from Jan 21, 2022

Conversation

temper357
Copy link
Contributor

Closes #1078

修复当 borderRadius 只有一个百分比 value 时,vertical radius 的值解析不对。原逻辑是先 parse 第一个值的百分比再赋值给 vertical radius,导致 vertical radius 是基于 width 解析而不是 height 解析,正确应该是 copy 第一个值的 string value 再 parse length。

Copy link
Member

@wssgcg1213 wssgcg1213 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@wssgcg1213 wssgcg1213 merged commit f76df41 into main Jan 21, 2022
@wssgcg1213 wssgcg1213 deleted the fix/border-radius-one-value branch January 21, 2022 03:07
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 this pull request may close these issues.

border-radius 100% 效果与浏览器不一致
3 participants