Repository navigation
Surface lost pseudo-elements, thin lines and re-parented pairs - #32
Merged
Merged
Conversation
- dom: `-sel::before` / `+sel::before` for a pseudo-element only one side generates, `sel::after prop l→r` when content, size or background differ. - A region whose diff is a 1–2px row across at least half the page is `line -1px@yN` (signed by the side that draws it) instead of `reg`. - A pair whose parent or grandparent tags differ is marked `(re-parented)`. Closes #28 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…line y when widths agree 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 #28
dom: each picked element now records its::before/::after(content, width, height, background-color, background-image, top/bottom border width and color, box-shadow;url()origin stripped). A pseudo-element only one side generates shows as-sel::before/+sel::before; one on both that differs assel::before height 1px→2px. Shares thegenerated()check with the--computedwalk.lineregions (src/compare.ts): a region whose differing pixels sit in 1–2 rows spanning ≥ half the compared width getsline: { y, h, side }. Side = which image differs from the rows on both sides of it. Summary printsline -1px@y812instead of counting it inreg;--progressand the report card list it too.(re-parented): a pair whose parent/grandparent tags differ is flagged (reparented: truein results.json), so a pairing across a structure change isn't read as the cause.dividercontrol fixture + visual test,tests/unit/compare.test.ts, docs indocs/output.mdand the skill'sreference.md.Note: accepted entries fingerprint
fmtElements, so an accepted region whose elements now carry(re-parented)or a new pseudo entry reads as new once and needs re-accepting.Follow-up (not in this PR): a line lost inside a height-change band gets no
lineor dom label, since band rows are excluded from regions (same as main).🤖 Generated with Claude Code