Skip to content
Testing·Advanced·Conceptual·1 min read

What's a reasonable pixel-difference tolerance to configure?

Short interview answer

A small tolerance for anti-aliasing differences is normal, but it should be tight enough that a genuine one or two pixel layout shift still fails. Too loose a threshold silently accepts the small regressions the test exists to catch.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Visual and snapshot testing

Related questions