I'm confused, this was created by Webkit, but is currently only available on Chromium based browsers according to : https://caniuse.com/?search=text-wrap%20pretty
How did that happen?
text-wrap: pretty tells the browser to wrap the text so as to make it look pretty. But the CSS standard doesn't specify what exactly that means; it's up to each individual browser to decide what algorithm yields the prettiest results.
Chromium is the only browser engine whose stable channel currently supports text-wrap: pretty. In this post, WebKit is announcing not only that they've implemented it (though not yet in a stable channel), but that they've done so using an algorithm that's better than Chromium's. Their algorithm adjusts for various things that Chromium's currently does not.
It wasn't created by WebKit. WebKit is announcing (at last) support for it.
The WebKit implementation is the only one that can handle many pages of text with no noticeable performance hit, while Chrome and Firefox are limited to only dealing with the last 4 or 6 lines of a paragraph.
Firefox doesn't have this feature at all.
I was curious as it seems like a nice thing to have and I use Firefox, so I looked it up. It's been suggested and you can upvote it here: https://connect.mozilla.org/t5/ideas/text-wrap-pretty-for-de.... Per the last post there (Aug 24).
> Mozilla standard position on this feature is positive > https://github.com/mozilla/standards-positions/issues/993
Now it makes much more sense.
I realize I misread "One solution is text-wrap:pretty" as "OUr solution is text-wrap:pretty". Combined with the fact that this was on the webkit blog.
Thanks.