Skip to content

--computed: equal gradients and hidden-box clipping are no finding; subcommand --help - #145

Merged
tmashara merged 2 commits into
mainfrom
claude/issue-133
Nov 4, 2026
Merged

tmashara merged 2 commits into
mainfrom
claude/issue-133

Conversation

@tmashara

@tmashara tmashara commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Closes #133

  • Gradients. background-image compares linear-gradient and repeating-linear-gradient layers by what they paint, at compare time in diffSnapshots only. The changes:

    • side keywords are read as angles (to right = 90deg);
    • an angle of 180° or more is reversed, with the stops flipped;
    • a corner is flipped to the one with top;
    • missing stop positions are filled in.

    Pixel-checked in Chromium, the three pairs from the issue, a reversed repeating gradient and a flipped corner paint identically. A colour hint reversed does not (max 23/255), so hints stay as written, as do px stops, calc() and increasing/decreasing hue. Reported values stay raw. styles() and the pixel-mode changed are untouched, so accepted fingerprints don't move.

  • Clipping. A clip or clip-path change is dropped when the element is fully clipped on both sides: a zero-area px rect with absolute/fixed position, or a % inset() with t+b ≥ 100 or l+r ≥ 100. The element's other properties are still reported. The skip happens where changes are pushed, so a skip link whose :focus-visible really changes is still a finding (unit test).

  • --help. report, merge, pack and probe with --help or -h anywhere print the help and exit 0. Other unknown flags still exit 2.

Docs: docs/output.md and skills/renderdiff/reference.md.

🤖 Generated with Claude Code

tmashara and others added 2 commits November 4, 2026 10:18
…ubcommand --help

- background-image compares linear and repeating-linear gradients by what they paint:
  side keywords as angles, angles past 180 reversed with flipped stops, corners flipped,
  default stop positions filled in. px stops, calc(), colour hints and increasing or
  decreasing hue stay as written. Reported values stay raw.
- clip and clip-path changes are dropped where the element is fully clipped on both
  sides (zero-area rect on absolute/fixed, or a % inset() that meets itself), at push
  time so a state's real change is still reported.
- report, merge, pack and probe print the help with --help or -h.

Closes #133

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…leave bare stops bare

- longer hue isn't symmetric under reversal when stops share a hue or are achromatic.
- First and last stop at the same position paints one colour that depends on order.
- An angle like 1e-05deg is read as the angle, and a token ending in a number is never
  a colour.
- Unpositioned stops are no longer filled in, which only narrows what compares equal.
- fullClip only runs for a differing clip or clip-path; probe --help already worked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tmashara
tmashara merged commit 4cb683d into main Nov 4, 2026
3 checks passed
@tmashara
tmashara deleted the claude/issue-133 branch November 4, 2026 09:26
@tmashara tmashara mentioned this pull request Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feedback from a style-lint parity run (0.14.1): equivalent gradients and hidden-element clip as computed findings, report --help

1 participant