logoalt Hacker News

notpushkintoday at 3:11 AM1 replyview on HN

Just found this demo in the Safari blog post: https://cdpn.io/pen/debug/xxvoqNM


Replies

crazygringotoday at 3:23 AM

Fascinating, thank you!

Playing around with it, seems that Safari simply stops hyphenating entirely when when text-wrap is pretty, regardless of whether it's justified or not. (If you smoothly resize the browser width, it makes it pretty easy to tell if hyphens ever come up.)

Which means the image on the left seems like it might be the wrong image?

And now I wonder if text-wrap: pretty is supposed to avoid hyphenation? Are hyphens not pretty? Or is it just a partial implementation by Apple, that they haven't gotten around to supporting hyphenation for it yet?

show 1 reply