Remove deprecated word-wrapping Stylelint suppressions added in #80738
Related to #80738.
What problem does this address?
PR #80738 enables Stylelint 17's deprecated property and value rules. To keep that dependency upgrade behavior-neutral, it adds 23 local suppressions around existing word-wrapping declarations:
- 20 suppressions for
word-break: break-wordunderdeclaration-property-value-keyword-no-deprecated. - 3 suppressions for
word-wrap: normalunderproperty-no-deprecated.
Most are marked Pending review of overflow-wrap alternative. These should not become permanent lint debt. The logical CSS suppressions whose rule names were migrated in #80738 already existed before that PR and are not part of this issue.
Proposed solution
Review each declaration in its layout context and replace it with standards-based word wrapping that preserves the current behavior. Do not apply one mechanical replacement everywhere. In particular, check intrinsic sizing, tables, flex and grid children, long URLs or identifiers, and editor versus front-end block styles. The Button block already records that overflow-wrap alone did not handle its nested-link case, so it needs a focused solution.
Remove all 23 suppressions introduced by #80738:
word-break: break-word
-
packages/block-editor/src/components/inserter-list-item/style.scsshttps://github.com/WordPress/gutenberg/pull/82426/ -
packages/block-library/src/button/style.scsshttps://github.com/WordPress/gutenberg/pull/82854 -
packages/block-library/src/columns/style.scsshttps://github.com/WordPress/gutenberg/pull/82426/ -
packages/block-library/src/embed/editor.scsshttps://github.com/WordPress/gutenberg/pull/82426/ -
packages/block-library/src/media-text/style.scsshttps://github.com/WordPress/gutenberg/pull/82580/ -
packages/block-library/src/post-title/style.scsshttps://github.com/WordPress/gutenberg/pull/82426/ -
packages/block-library/src/table/editor.scsshttps://github.com/WordPress/gutenberg/pull/82480/ -
packages/block-library/src/table/style.scss(two occurrences) https://github.com/WordPress/gutenberg/pull/82480/ -
packages/block-library/src/verse/style.scsshttps://github.com/WordPress/gutenberg/pull/82426/ -
packages/dataviews/src/components/dataform-layouts/panel/style.scsshttps://github.com/WordPress/gutenberg/pull/82776/ -
packages/editor/src/components/post-card-panel/style.scsshttps://github.com/WordPress/gutenberg/pull/82426/ -
packages/editor/src/components/post-panel-row/style.scsshttps://github.com/WordPress/gutenberg/pull/82426/ -
packages/editor/src/components/post-publish-panel/style.scss(two occurrences) https://github.com/WordPress/gutenberg/pull/82495 -
packages/editor/src/components/post-url/style.scss(two occurrences) https://github.com/WordPress/gutenberg/pull/82426/ -
packages/editor/src/components/revision-diff-panel/style.scsshttps://github.com/WordPress/gutenberg/pull/82426/ -
packages/fields/src/fields/slug/style.scsshttps://github.com/WordPress/gutenberg/pull/82693 -
packages/workflow/src/components/workflow-menu.scsshttps://github.com/WordPress/gutenberg/pull/82562/
word-wrap: normal
-
packages/block-editor/src/components/responsive-block-control/style.scsshttps://github.com/WordPress/gutenberg/pull/82855/ -
packages/block-library/src/common.scsshttps://github.com/WordPress/gutenberg/pull/82972/ -
packages/ui/src/visually-hidden/style.module.csshttps://github.com/WordPress/gutenberg/pull/82970
Completion criteria
- All 23 suppressions introduced by #80738 are removed.
- Each replacement preserves line breaking and intrinsic sizing in its actual layout.
- Block styles are checked in both the editor and front end where applicable.
- Focused regression coverage is added where a plain declaration-level check cannot prove the behavior.
npm run lint:csspasses without a global exception for these deprecated declarations.
Source: WordPress/gutenberg