Another unpopular opinion about CSS: CSS makes Knuth line breaking hard, but I actually think that’s the *right* call. Greedy line breaking makes it so much easier to support layout features you actually want. Many things are hard in TeX because it does Knuth line breaking.https://twitter.com/littledan/status/1109521891864338438 …
-
-
Replying to @pcwalton
Why do these conflict? Why does greedy do anything other than run faster?
1 reply 0 retweets 2 likes -
Replying to @samth
Knuth line breaking is basically “try all the possibilities”, so you end up having to either (a) worry about memory consumption from lots of potential layout trees or (b) have the ability to “undo” your changes as you go. Either is nontrivial.
2 replies 1 retweet 4 likes
It’s not really feasible to implement either in current layout engines AFAICT. Blink’s LayoutNG, WebKit’s new layout, and @SimonSapin’s victor experiments should be able to do it because they have input and output trees. Still concerned about mem. usage though.
6:43 PM - 29 Mar 2019
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.