Repository navigation
Catch subtle recolours: pixelmatch threshold 0.05 - #19
Merged
Merged
Conversation
pixelmatch's 0.1 scored Tailwind v3 vs v4 pink-500 as identical. Adds a tint control for it, keeps abs-vs-flex whole-pixel at 375 (its half-pixel centring was hidden by the old threshold), and fixes the bash array in the case study. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 24, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
renderdiff scored a visible colour change as identical: Tailwind v4
pink-500(#f6339a) vs v3 (#ec4899) has a YIQ delta of 117, below pixelmatch 0.1's cut-off of 352. Found in the case study.PIXELMATCH.threshold0.1 → 0.05 (cut-off ≈ 88).tintcontrol: one swatch, the two pinks. Was clean, now one region namingbackground-color.abs-vs-flex@375 broke authoring rule 2 (left: 50%andtranslate(-50%)both on .5); 0.1 hid it. Hero 342 / box 310 at mobile on both sides keeps it whole-pixel.$R→"${R[@]}"(bash expanded only the first route), and a note on the fix.No per-pixel threshold separates the two: the half-pixel border in
abs-vs-flexhas a larger delta than the pink. Checked on the case-study builds: 0.05 takes the blog from 4 to 10 differing routes, and the new ones are the pink button, links and tags.lint, format, typecheck, unit (222) and visual (303) pass locally.
🤖 Generated with Claude Code