You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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-word under declaration-property-value-keyword-no-deprecated.
3 suppressions for word-wrap: normal under property-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.
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:
word-break: break-wordunderdeclaration-property-value-keyword-no-deprecated.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-wrapalone did not handle its nested-link case, so it needs a focused solution.Remove all 23 suppressions introduced by #80738:
word-break: break-wordpackages/block-editor/src/components/inserter-list-item/style.scssRemove deprecated word-wrapping Stylelint suppressions #82426packages/block-library/src/button/style.scsspackages/block-library/src/columns/style.scssRemove deprecated word-wrapping Stylelint suppressions #82426packages/block-library/src/embed/editor.scssRemove deprecated word-wrapping Stylelint suppressions #82426packages/block-library/src/media-text/style.scsspackages/block-library/src/post-title/style.scssRemove deprecated word-wrapping Stylelint suppressions #82426packages/block-library/src/table/editor.scssTable: replace deprecated word-break with overflow-wrap: anywhere #82480packages/block-library/src/table/style.scss(two occurrences) Table: replace deprecated word-break with overflow-wrap: anywhere #82480packages/block-library/src/verse/style.scssRemove deprecated word-wrapping Stylelint suppressions #82426packages/dataviews/src/components/dataform-layouts/panel/style.scsspackages/editor/src/components/post-card-panel/style.scssRemove deprecated word-wrapping Stylelint suppressions #82426packages/editor/src/components/post-panel-row/style.scssRemove deprecated word-wrapping Stylelint suppressions #82426packages/editor/src/components/post-publish-panel/style.scss(two occurrences) Post publish panel: replace deprecated word-break with overflow-wrap #82495packages/editor/src/components/post-url/style.scss(two occurrences) Remove deprecated word-wrapping Stylelint suppressions #82426packages/editor/src/components/revision-diff-panel/style.scssRemove deprecated word-wrapping Stylelint suppressions #82426packages/fields/src/fields/slug/style.scsspackages/workflow/src/components/workflow-menu.scssWorkflow: Remove deprecated word-wrapping #82562word-wrap: normalpackages/block-editor/src/components/responsive-block-control/style.scsspackages/block-library/src/common.scsspackages/ui/src/visually-hidden/style.module.cssCompletion criteria
npm run lint:csspasses without a global exception for these deprecated declarations.