Skip to content

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

Closed

Description

@tmashara

--computed reports dom identical, 0 findings when only these properties change.

Repro (renderdiff 0.10.0). Two static pages, both containing <div style="width:120px"><code>averyveryverylongidentifierwithoutbreaks</code></div> plus a visually hidden span and a paragraph of text.

  • right: code{word-break:break-word} .h{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  • left: code{overflow-wrap:anywhere} .h{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
renderdiff http://localhost:4802 http://localhost:4801 / --computed --width 375
computed: 0 findings; dom identical on 1 of 1 route(s)

Expected: findings for code (word-break, overflow-wrap) and .h (clip, clip-path). These are typical stylelint 17 autofixes (declaration-property-value-keyword-no-deprecated, property-no-deprecated), so a CSS-only lint upgrade is exactly where --computed should catch them.

Suggestion: add the text-wrapping and clipping properties to the computed property list (word-break, overflow-wrap, white-space-collapse, text-wrap, hyphens, clip, clip-path, mask). Also list the compared properties in the docs, so "0 findings" isn't read as full coverage.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions