coderef

word-breakBaseline · Widely available

The word-break CSS property sets how lines break within words.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Sep 30, 2015. Widely available since Mar 30, 2018.

Browser support

DesktopChrome
1–43Not supported
44+Supportedsince Jul 21, 2015
Current: 155
Edge
12+Supportedsince Jul 29, 2015
Current: 154
Firefox
1–14Not supported
15+Supportedsince Aug 28, 2012
Current: 157
Safari
1–8Not supported
9+Supportedsince Sep 30, 2015
Current: 27
MobileChrome Android
18–43Not supported
44+Supportedsince Jul 29, 2015
Current: 155
Firefox Android
4–14Not supported
15+Supportedsince Aug 28, 2012
Current: 157
Safari iOS
1–8Not supported
9+Supportedsince Sep 16, 2015
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: word-break.

Feature detection

CSS · check before using
@supports (word-break: initial) {
  /* styles that rely on word-break */
}

/* or in JavaScript */
if (CSS.supports("word-break", "initial")) {
  // use it
}

Sub-features

Support for each part of the feature (4). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
word-break11215318152
word-break.break-all11215318152
word-break.keep-all441215944159
word-break.normal11215318152