Skip to content

--computed: read word-break, overflow-wrap, clip, clip-path and mask - #106

Merged
tmashara merged 1 commit into
mainfrom
claude/issue-99-wrap-clip-props
Oct 30, 2026
Merged

tmashara merged 1 commit into
mainfrom
claude/issue-99-wrap-clip-props

Conversation

@tmashara

Copy link
Copy Markdown
Owner

--computed reported 0 findings when a CSS-only change swapped wrapping or clipping keywords. These are typical stylelint 17 autofixes, e.g. word-break: break-word → overflow-wrap: anywhere, clip → clip-path. The snapshot reads a fixed property list, and these weren't on it.

  • SNAP_PROPS (src/locate.ts) now also reads word-break, overflow-wrap, hyphens, text-wrap-style, clip, clip-path and mask. PROPS, and with it pixel mode's changed and the accepted fingerprints, is unchanged.
  • word-break, overflow-wrap, hyphens and text-wrap-style join INHERITED, so a change on a parent isn't repeated on every descendant.
  • text-wrap-style, not the text-wrap shorthand: white-space already covers the wrap mode, so a nowrap change would otherwise show twice.
  • docs/output.md lists the compared properties by group and says the list is curated, so 0 findings isn't read as full coverage. skills/renderdiff/reference.md says the same.

Possible follow-up: overflow isn't read either. If it's added, use the single overflow shorthand.

Verification

  • New visual test in tests/visual/computed.test.ts uses the issue's repro: findings are exactly code word-break/overflow-wrap and span.h clip/clip-path, nothing on the nested <b>, and dom stays identical.
  • npm run typecheck, npm run lint, npm run format:check pass.
  • npm test: 359/359 pass. npm run test:visual: 391/391 pass (macOS).

Fixes #99

🤖 Generated with Claude Code

A stylelint autofix swapping deprecated wrapping or clipping keywords read as
0 findings. The snapshot now also reads word-break, overflow-wrap, hyphens,
text-wrap-style, clip, clip-path and mask (the text ones collapse like other
inherited properties), and the docs list the compared properties.

Fixes #99

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@tmashara
tmashara merged commit d013055 into main Oct 30, 2026
3 checks passed
@tmashara tmashara mentioned this pull request Oct 30, 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.

--computed misses word-break, overflow-wrap, clip and clip-path

1 participant