Chromium drew a blue underline under a link. VisTest picked up the changed pixels. The test passed anyway.
I built VisTest to catch visual regressions in Python Playwright tests. In part 3 , a benchmark made from Chromium screenshots showed how often my engine missed real changes. This one underline showed me where to look.
Where the line went
I traced the changed pixels through the old engine. They made it into the first map of differences. Then a cleanup step erased the thin line before it could become a region the engine would report. By the time VisTest decided whether to pass, there was nothing left to judge. Development journal
A stricter setting at the end of that pipeline had nothing to work with. I rewrote the part that decided which pixels made it that far.
What v2 does with the same screenshot
The new engine groups changed pixels into regions first. Then it looks for a specific reason to set a region aside.…