【发布时间】:2021-04-23 16:05:03
【问题描述】:
我发现浏览器错误了吗? 更新:是的,我有。在https://bugs.chromium.org/p/chromium/issues/detail?id=1169075 提交的错误。
当border 或outline 属性添加到此<div> 时,css scale 动画会留下痕迹。当然我没有做错。这发生在 Chrome 和 Edge 上(我相信它们现在使用相同的引擎)。
在 Mac 版 Chrome 上没有问题。
Chrome 87.0.4280.141
边缘 87.0.664.75
@keyframes sqwhere-hover {
0% {
transform: scale(1);
}
50% {
transform: scale(1.1);
;
}
100% {
transform: scale(1);
}
}
.sqwhere {
width: 300px;
height: 300px;
margin: 50px auto;
animation: sqwhere-hover 2s infinite;
border: 1px solid black;
}
<div class="sqwhere"></div>
【问题讨论】:
标签: google-chrome css-animations microsoft-edge