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
style计算有问题 #5437
Comments
This should be an issue when vue updating style. |
这个很难说是个bug吧。首先,我发现vue会把border属性分解成
当鼠标移入,设置
这样颜色就恢复初始状态黑色了。这一类简写的样式应该都有这样的问题,我试了一下 |
如果不认为是bug,那么应该在文档中提及这点吧 |
淡定,淡定。我是只个路人,不代表官方态度。😂 |
第二种情况两个 我个人看法是根本就不应该写这种 inline style + 简写覆盖的代码。静态的 style 抽取到单独的 css 里面就根本不存在这种问题了。 |
@johnninja 我也就是说一下...😂 |
@jkzing @johnninja @yyx990803 感谢两位的讨论, 也感谢大神的回复 |
严格意义上来说,这个确实属于 bug,但属于 wontfix,因为修复的代价远远大于修复的收益。css 规则简写没有什么规律可循,只能暴力列举,这个对代码量影响太大,能做的就是在文档里建议不要这么写。 |
Version
2.2.6
Reproduction link
https://jsfiddle.net/blqw/cLwau40z/
Steps to reproduce
鼠标移动到span标签上 然后再移开
What is expected?
span标签下边框恢复到初始状态, "透明"
What is actually happening?
span标签下边框变为黑色
The text was updated successfully, but these errors were encountered: