Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

word-break — word-breaking rules

The word-break property controls permitted wrapping points between letters and within words. It adjusts rules for different writing systems and is distinct from emergency wrapping with overflow-wrap.

Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required

Syntax

word-break: normal | break-all | keep-all | manual | auto-phrase | break-word;

word-break defines soft wrap opportunities, not forced line breaks. It is inherited and initially normal. Wrapping must be allowed: white-space: nowrap prevents these opportunities from being used.

normal follows customary language rules. break-all permits breaks inside words without hyphenation, but does not remove every punctuation restriction. keep-all restricts breaks between letters, particularly in CJK (Chinese, Japanese, and Korean) sequences; it does not disable all wrapping.

In the Level 4 draft, manual disables lexical word-boundary detection, relevant to some Southeast Asian scripts; authors then mark boundaries using wbr or U+200B. auto-phrase analyzes language to keep phrases together; without suitable analysis it behaves like normal. Inclusion in the draft does not establish target-browser support.

Deprecated break-word means word-break: normal plus overflow-wrap: anywhere, regardless of the declared overflow-wrap. For extra breaks only to prevent overflow, use that explicit pair instead of break-all.

The example compares normal and break-all in 4ch boxes. The stated layout was verified in an isolated environment. Compatibility with Chromium 152 remains unconfirmed.

Examples

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>word-break</title>
<style>
.sample {
  width: 4ch;
  font: 20px/1.5 monospace;
  white-space: normal;
  overflow-wrap: normal;
  hyphens: none;
  border: 1px solid;
  margin-bottom: 1rem;
}
.normal { word-break: normal; }
.split { word-break: break-all; }
</style>
<div class="sample normal">AAAAAAAAAAAA</div>
<div class="sample split">AAAAAAAAAAAA</div>
</html>

Result

normal: AAAAAAAAAAAA (one overflowing line)
break-all:
AAAA
AAAA
AAAA

The displayed code and stated result were verified in an isolated environment. This does not establish compatibility with Chromium 152.

Sources