Get the latest tech news

Better typography with text-wrap pretty


Support for text-wrap: pretty just shipped in Safari Technology Preview, bringing an unprecedented level of polish to typography on the web.

We chose to take a more comprehensive approach in our implementation because we want you to be able to use this CSS to make your text easier to read and softer on the eyes, to provide your users with better readability and accessibility. There also might be other ways the WebKit team discovers to balance beauty and speed, ensuring pretty does the most to improve all of your text without affecting the users experience of our incredibly fast browser. You’ll notice that as a result, the visual imprint of the headline / the chunk of “ink” on the page is now significantly narrower than the overall space available in its container (marked here with a cyan line).

Get the Android app

Or read this on Hacker News

Read more on:

Photo of wrap

wrap

Photo of Better typography

Better typography

Related news:

News photo

Engadget Podcast: That's a wrap on CES 2025