Repository navigation
--computed: read word-break, overflow-wrap, clip, clip-path and mask - #106
Merged
Merged
Conversation
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]>
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.
--computedreported0 findingswhen 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 readsword-break,overflow-wrap,hyphens,text-wrap-style,clip,clip-pathandmask.PROPS, and with it pixel mode'schangedand the accepted fingerprints, is unchanged.word-break,overflow-wrap,hyphensandtext-wrap-stylejoinINHERITED, so a change on a parent isn't repeated on every descendant.text-wrap-style, not thetext-wrapshorthand:white-spacealready covers the wrap mode, so anowrapchange would otherwise show twice.docs/output.mdlists the compared properties by group and says the list is curated, so0 findingsisn't read as full coverage.skills/renderdiff/reference.mdsays the same.Possible follow-up:
overflowisn't read either. If it's added, use the singleoverflowshorthand.Verification
tests/visual/computed.test.tsuses the issue's repro: findings are exactlycodeword-break/overflow-wrapandspan.hclip/clip-path, nothing on the nested<b>, anddomstays identical.npm run typecheck,npm run lint,npm run format:checkpass.npm test: 359/359 pass.npm run test:visual: 391/391 pass (macOS).Fixes #99
🤖 Generated with Claude Code