Skip to content

Add --hover, --focus and --active state passes - #3

Merged
DorskFR merged 1 commit into
mainfrom
hover-pass
Nov 12, 2026
Merged

DorskFR merged 1 commit into
mainfrom
hover-pass

Conversation

@DorskFR

@DorskFR DorskFR commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Adds three opt-in flags. Each one adds a pass per viewport with that user-action state forced on every element, then compares old and new computed styles.

  • Changes that appear only under a forced state are labelled :hover only (1440x900:hover in JSON).
  • Changes already present without the state are not repeated.
  • The default scan is unchanged.

Known limits, documented in the README: states are forced on every element at once, so :not(:hover) never matches; Blitz never matches :focus-visible / :focus-within.

Verified: fmt, clippy -D warnings, 21 tests (3 new). On a 28-page site, a :hover border-color edit is reported with --hover and identical without it; runtime 0.6 s default, 1 s with --hover, 2 s with all three.

🤖 Generated with Claude Code

Each flag adds a pass per viewport with that state forced on every
element. Changes seen only under a forced state are labelled with it;
changes already present without it are not repeated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DorskFR
DorskFR merged commit 6f6e91f into main Nov 12, 2026
1 check passed
@DorskFR
DorskFR deleted the hover-pass branch November 12, 2026 10:54
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.

1 participant