Repository navigation
--computed skips hidden selectors; verdict line counts unstable shots - #139
Merged
Merged
Conversation
hideSelectors only injected display:none, so a hidden element was still keyed by the --computed walk: a banner one side lacked (or that came wrapped on some loads) read as dom differs, on base vs base too. The walk, and probe's, now skip hidden elements like masked ones; they still count toward :nth-of-type, so keys keep working with querySelector. The verdict line gains ", N unstable (max Mpx)" when any shot had unstable pixels. Refs #121 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 3, 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 #121. This covers item 5, part of item 3, and a doc tweak for item 4. Rule coverage (item 1) will come in a separate PR. The side-by-side crop (item 2) is deferred to #113/#104;
report --markdownalready gives Before/After shots for every width.User-facing changes
--computedandprobeskiphideSelectorselements and their subtrees, the same way they skip masked ones./consent(the default#onetrust-consent-sdk)--computedreporteddom differs (1)withunmatched +body > div#onetrust-consent-sdk.body > div.gdpr-cookie-noticeon some loads and wrapped indiv#gdpr-outer-containeron others. That made base vs base readdom differs. Hide the wrapper too: the docs now say so.:nth-of-type, so it still re-keys them. That may be part of the Feedback from a CSS-only docs run (0.12.0): rule coverage, PR crops of clean shots, hidden subtrees in dom, results.json fields #121 base-vs-base case. The indexing stays as it is so keys keep working withquerySelector; masks have the same limit today. The docs now say so., N unstable (max Mpx)after the error count when any unaccepted shot had unstable pixels. When there are none it prints nothing extra.report.htmlandevidence.htmlreuse this line. A strict parser of the verdict line should allow the new optional clause.failedas{ left: [], right: [] }, always both, with a jq count.Tests
--computedand assertsdom0 and no unmatched elements at 1440 and 375. On main it fails.verdict.unstableis{ shots: 1, max: 148480 }.parse.tsVERDICT gets the optional group.🤖 Generated with Claude Code