Exciting news for fans of typography!

"For decades, software like Adobe InDesign and LaTeX has evaluated multiple lines of text at a time as they decide where to end one line and begin the next. It’s just that the web didn’t use a multiline algorithm. Until now.

We are excited to bring this capability to the web for the first time, in Safari Technology Preview 216."

https://webkit.org/blog/16547/better-typography-with-text-wrap-pretty/ by @jensimmons

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.

WebKit
"WebKit is not the first browser engine to implement, but we are the first browser to use it to evaluate and adjust the entire paragraph. And we are the first browser to use it to improve rag. 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. And simply, to make something beautiful."
@jawnsy @jensimmons I am not a developer, but I do write a lot on the web and this looks great!

@jawnsy @jensimmons

> Many developers are understandably
concerned about the performance of text-wrap: pretty

I would like to believe that. But looking at the number of sites I visit that are brimming with animations, I could not help but laugh at that statement.

@bjorndown In fairness, it's possible to *both* be concerned about browser performance *and* send 100MB of JavaScript dependencies to the browser ;)

Being concerned about something doesn't mean that it's, on balance, a valid concern haha

@jensimmons

@zl2tod Thank you, very exciting! Will have to see if I can get time to implement this today!
@zl2tod Thank you, added to a ton of stylesheets we use. Not as good as on Safari but still an improvement!
@jawnsy @jensimmons
Thank you so much for this work.
I cannot wait to see broad adoption. This is light-years better than 'balanced’ which is anything but pretty!
@jawnsy @jensimmons I love this news, but I'd love it more if it was available in other multi-platform browsers. Maybe I missed something 🤔

@pablo_martan Well, the Safari team has no control over what other vendors do. That enhancement would need to follow whatever process Chromium et. al. have, right?

@jensimmons

@jawnsy @jensimmons yes, indeed. I was just expressing that I'd love others to implement it, not that it was Safari dev's responsibility 😂
@jawnsy @jensimmons my kind of news ❤️❤️❤️