Rego’s Everyday Life

A blog about my work at Igalia.

Have you noticed a change on how subpixel borders are rendered in Chromium 85? Now they’re floored instead of rounded like in Firefox and WebKit.

The improvement is specially noticeable when you have a scrollbar. Let’s hope it doesn’t cause any regression. 🤞

Screenshot of how Chrome 84 vs 85 renders borders of 1px, 1.5px and 2px. In Chrome 84, the 1.5px looks like the 2px one. In Chrome 85, the 1.5px looks like the 1px one

Screenshot of Chrome 84 vs 85 renders a 1.5 px border in an element that has a scrollbar, which makes the issue more noticeable. In Chrome 85 all the border looks the same because everything is floored to 1px

I found this while working on some “outline” issues, as outlines were floored while borders were rounded. And then realized about the interop problem and decided to try to fix it: chromium.googlesource.com/chromium/src/+/d1b0fc8e45dcbe00e9060a3dba87c398425ae178