Repository navigation
Drop varies text like masked text; name a resized element's changed parent - #146
Merged
Merged
Conversation
…arent A varies recheck now re-reads both pages' text with the varying elements hidden, through the same readText the shot uses for masks, so a footer clock painted out of the pixels no longer leaks into `text` or findings. dom treats a width or height change as a consequence: an element whose only changes are its size looks to its neighbour or parent, and only one with a change of its own is named as the cause, listed after it. Closes #138 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d text, restore style exactly - A moved-only element still names a parent whose only change is its size; only a resized element requires its cause to have a change of its own. - The varies text re-read hides only elements whose text changed (or exist on one load), so a pushed element's text stays; variesSels is shared with fmtVaries, whose mask suggestion is unchanged. - readText restores each style attribute as it was, so no style="" is left for --computed to read as a markup change. - Docs: a width or height change alone is usually a consequence; varies text is left out when the element was located. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #138
Text in a varies region
readText, which is the shot's own text read, now extracted fromcaptureand exported.text, and from the findings it used to repeat across routes, the same way its pixels are painted out.finallyblock, before locate,--computedand--ariarun.--no-recheck, read text exactly as before.dom names the cause, not the symptom
widthandheightalone now count as a consequence. An element whose only changes are its size looks to its previous sibling or its parent for the cause.--computed.Tests
/drifting:textis empty and stdout has no text line. A real h1 text change on the left, next to the varying content, still appears intext.added./flex-vs-gridwith a hook that setspadding-lefton a card: the card is named withpadding-left, the h3 is still named, and the card is among the first 3 entries of thedomline./flex-vs-gridwith a hook that changes ap's own width under an unchanged parent, and a parent whose only change is width: neither is named as a cause.npm testpass. The visual filescontrols,guardrailsandacceptedpass when run alone.🤖 Generated with Claude Code