Limited support Use with care and confirm browser support before shipping it to all users.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
pretty
130
130
26
130
26
pretty
117
117
26
117
26
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)

Syntax

CSS
h1, h2, h3 {
  text-wrap: pretty;
}

Live demo

pretty

CSS Pretty demo.

PreviewFullscreen

balance

CSS Balance demo.

PreviewFullscreen

Normal(wrap)

CSS Normal(wrap) demo.

PreviewFullscreen

Use cases

  • Refine text rhythm

    Use text-wrap: pretty to make long-form reading or dense interface copy easier to scan and understand.

  • Support language nuances

    Apply text-wrap: pretty when different writing systems or typographic conventions need more deliberate control.

Cautions

  • Test text-wrap: pretty in the browsers you support, especially if it changes layout, text handling, or interaction behavior.
  • Plan a fallback or acceptable degradation path when support is still limited.

Accessibility

  • Check readability with zoom, narrow screens, and mixed-language content so text remains understandable.