Repository navigation
varies: label painted-out px, suggest only id/class/attribute masks; rerun lists its own findings - #114
Merged
Conversation
…rerun lists its own findings The varies count is the element boxes painted out, not the pixels that changed, so the console row and report badge now say "painted out". Mask suggestions skip selectors that end in a bare tag (p:nth-of-type(14)), which would hide real changes too. --rerun-failed lists findings for the shots it reran, not the reused ones. Refs #113 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 2, 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.
Refs #113
What changed
variestotal vs. its regions (item 4). The number is the area of the element boxes that were painted out, not the count of pixels that changed. A 1px-tall region inside a<p>therefore reads as about 48k px. The number is unchanged (the score subtracts it), but it's now labelled: the console row readsvaries /a @1440 48,263px painted out …, and the report badge reads "N px painted out, vary per load". docs/output.md explains the difference.--mask/masks:suggestions now skip selectors whose last compound is a bare tag, optionally with:nth-of-type(n)(for examplep:nth-of-type(14)or#main > p:nth-of-type(3)). Masking those would hide real changes too. Selectors ending in an id, class or attribute are still suggested. Thevariesrow still lists every located selector. When nothing survives the filter, both suggestion lines are left out.--rerun-failedreprints old blocks (item 6). Reused shots, including varies shots whose diff was painted down to 0, used to feed the findings, computedunmatched, aria andvariesblocks. Those blocks now list only the shots the rerun actually took. Scores, the clean/accepted lists and results.json are unchanged.Tests
tests/unit/varies.test.tscovers the row label and the selector filter, including[data-testid="a b"].guardrails.test.ts: thevariesregex now requires "painted out", and /drifting (.drift) still yields a--maskline.accepted.test.ts: a rerun after a run that printedvaries /driftingprints itsrerun:line and novariesblock.npm test(364) pass, as do the guardrails and accepted visual suites (112) on macOS.Deferred
--only: a design call. It needs an explicit flag rather than CLI routes implicitly taking on config routes' settings.🤖 Generated with Claude Code