A Very Long Heading That Needs To Be Balanced Across Multiple Lines

The text-wrap: pretty property is designed for long paragraphs where typographic excellence is prioritized. It uses a more sophisticated, slower algorithm than the default "greedy" approach to intelligently adjust line breaks and prevent orphaned words (runts) on the final line of a block of text.

"By enabling this feature, the browser evaluates the last few lines of text to ensure that the final line has a reasonable length, rather than leaving a single word alone. This creates a much more polished and professional look for articles, blog posts, and other long-form content."

The result is improved legibility and a better overall user experience, as the text feels more stable and deliberately laid out regardless of the screen size or container width.