Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by deathanatos

1 day ago

AIUI, yes, most browsers use greedy line breaking by default. E.g., FF does not do Knuth style[1].

This led to the CSS `text-wrap` property, and `text-wrap: pretty`[2], but pretty is not supported in FF yet, and the value `pretty` doesn't mandate Knuth's algorithm.

[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=630181

[2]: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/P...

0 comments

deathanatos

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities