executesorder66 10 days ago

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?

3
ameliaquining 10 days ago

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.

velcrovan 10 days ago

It wasn't created by WebKit. WebKit is announcing (at last) support for it.

alwillis 10 days ago

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.

TiredOfLife 9 days ago

Firefox doesn't have this feature at all.

mrandish 9 days ago

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

TiredOfLife 8 days ago

Firefox has 20 year old rendering related bugs still open

executesorder66 10 days ago

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.