
Reviewing Visual Diffs in Pull Requests
Intended change or regression is the one judgment visual review makes. The inputs it needs, the triplet reading order, who approves what, and how rubber-stamping sets in.
TL;DR: Every red visual diff asks one question: is this deviation the change the pull request intended, or damage it did not. Answering needs two inputs the diff alone cannot supply — what the pull request claims to change, and what the surface is supposed to look like. Read the triplet in the order diff overlay, then expected against actual, then the causing code, and treat any deviation outside the pull request's claimed blast radius as the most suspicious, not the least. Approval follows ownership: component owner, composition owner, and explicit cross-discipline sign-off for aesthetic changes. Rubber-stamp decay is the terminal failure, and its defenses live upstream in selection, thresholds, and state discipline.
The one judgment visual review makes
A visual review workflow can look elaborate — dashboards, approval buttons, notification routing — but it exists to make one judgment fast and correct. Is this red diff the change the pull request set out to make, or is it a regression that rode along.
That judgment needs two inputs, and the diff image supplies neither. The first is what the pull request claims to change: its description and its code diff, which together say what the author intended and roughly where. The second is what the surface is supposed to look like — design intent, whether that lives in a design file, a component spec, or a shared understanding of the product held by whoever owns it.
Neither input is optional. Without the first, the reviewer cannot tell an intended change from an accident, because both are just pixels that moved. Without the second, the reviewer can confirm the change was deliberate but not whether it was correct — a developer can very deliberately ship spacing that design never asked for. The two inputs answer two different questions, and a review that has only one of them is answering half the question and guessing the rest.
A diff judged without those inputs collapses into "looks fine to me." That is exactly how plausible-looking regressions ship: they look plausible, and a reviewer with no intent to check against approves the plausible thing. A four-pixel shift in a card's padding looks fine in isolation. It stops looking fine the moment you know the pull request claimed to touch only the footer. The inputs are what turn a glance into a judgment.
Reading the artifact triplet
The standard failure output is three images: the expected baseline, the actual capture from this run, and a computed diff overlay that highlights the changed regions. That triplet is the reviewer's raw material. In Playwright 1.65 (as of November 2026), a mismatch writes the expected, actual and diff images to the test output and attaches them to the test result. Playwright's UI Mode documentation describes comparing the image diff, the actual image and the expected image in its Attachments tab; the files written to the test output are visible in the snapshot matcher source rather than described in the visual comparisons guide, which covers how baselines are generated and updated; check your version.
A reading order catches more than free-form staring. Start with the diff overlay to locate where the change is. Move to expected against actual at that located region to see what actually changed there. Then go to the code diff and ask whether the code in this pull request plausibly causes that pixel change.
That last step — the causality check — is the one most often skipped. A pixel change with no plausible causing code in the pull request can come from causes such as an environment problem, a baseline that was stale before this pull request touched it, or a regression that got in from somewhere else and is only surfacing now. Each of these is worth stopping for, and each is invisible if the review looks only at the images and never connects them back to the diff. The reviewer who asks "what line in this change would move that pixel" catches things the reviewer who only compares images cannot.
Scope is the other underused lens. Deviations inside the pull request's claimed blast radius are expected and usually quick to confirm. Deviations outside it — a shifted element on a page the pull request never mentions — deserve the most scrutiny, because an unexplained change far from the stated work is the signature of a regression the author did not know they caused.
Who approves what
The approval roster follows the granularity decision made elsewhere. Component-level diffs belong to the component's owner, who knows what that component is supposed to do. Page-level diffs belong to whoever owns the composition, because judging a shifted element on a page requires knowing what the page was arranged to do.
Aesthetic changes raise a second question. When the change is spacing, color, or typography, engineering approval can verify that the code did this on purpose — but not that this is what design wanted. For design-owned surfaces, cross-discipline approval is a convention worth making explicit rather than assuming that an engineer's "the code intended this" also means "design signed off."
Baseline approval is correctness-setting. Whoever approves a new baseline is signing the new standard that every future run will be compared against. The approval convention should name who may sign for which surfaces, because a baseline approved carelessly bakes a regression into the reference and every subsequent run passes it silently — the bug is now the expected state, and the suite will defend it. This is why an unexplained baseline change deserves more scrutiny than an unexplained code change, not less: the code change fails a test, the baseline change disables one.
Review services and where they help
Commercial visual review platforms layer team workflow over the raw triplet. One vendor's documentation, for example, describes a side-by-side view of all visual changes, approving or rejecting each change, an activity timeline of builds, discussions and review status, and reviewers emailed a link to begin their review (as of November 2026). These platforms are a category and a market reality, named here without ranking, pricing, or a comparison table.
What they change is the review's ergonomics and its audit trail, not the judgment itself. The intended-versus-regression question is identical whether the triplet arrives in a folder of pull-request artifacts or in a hosted dashboard. A service does not make the call; it organizes the calling.
At individual-contributor altitude the build-versus-adopt consideration is straightforward. Repository-native review — artifacts attached to the pull request, images opened from the check — keeps the loop simple and adds little to maintain beyond artifact retention settings. A service earns its place when diff volume, approval routing, or cross-discipline review outgrow what pull-request ergonomics comfortably handle: when designers need to approve diffs without touching the repository, when the number of diffs per pull request makes an inline folder unmanageable, or when the team needs an audit trail of who approved which baseline change. Any specific capability claim about a given service should be treated as as-of and re-verified at the time it matters, because the category moves and last year's comparison is this year's misinformation.
Defending judgment quality
Rubber-stamp decay is the terminal failure of a visual suite. High diff volume plus time pressure trains bulk approval: a reviewer facing, say, forty screenshots learns to click through them, and the suite silently stops catching what it was built to catch even though every test still runs.
The defenses live mostly upstream. Selection, threshold, and state discipline keep the total diff volume judgeable, and a judgeable volume is the precondition for judgment — no review convention rescues a suite that produces, say, sixty diffs per pull request. In the review itself, two conventions help: a bulk approval requires a second reviewer, and an unexplained diff blocks by default rather than passing on benefit of the doubt. Both conventions are cheap when diff volume is low and unworkable when it is high, which is another way of saying the same thing: the upstream decisions are where review quality is actually determined.
One postmortem question is worth institutionalizing. When a visual bug ships despite a green or approved suite, ask which of three things happened: the diff was missing because the surface was not covered, the diff was there but mis-thresholded into invisibility, or the diff was approved without being read. Each points at a different fix, and knowing which one recurred is more useful than resolving to "review more carefully."
The honest limit is that review is attention work. No convention makes judgment free, and the suite's total diff volume is precisely the review budget that the selection, matrix, and state decisions spent on the team's behalf.