3 ms·
I don't think speed is the main problem. People have reimplemented the TeX algorithm in JS and it's fine. After all, Knuth was doing pages per second back in th
by gwern 7y ago
I don't think speed is the main problem. People have reimplemented the TeX algorithm in JS and it's fine. After all, Knuth was doing pages per second back in the 1970s, and it's 2019. But the problem there is that it breaks some sort of CSS property and so the browsers adamantly refuse to use it and the devs say that not much can be done to improve things.
- aasasd 7y agoAh, yes, I've heard about this: proper justification with even spacing is incompatible with the CSS spec, as iirc the spec pretty much says a paragraph must take minimum vertical space. Alas exact details elude me, as well as why a spec change wouldn't fix this.
- gwern 7y agoYes, something like that. Greedy layout is required. As for a spec change - changing the standard? And who knows what it would break at this point? Might as well wish for a pony.
- aasasd 7y agoEh, from the level of discussion on such issues it seems that every detail of rendering is figured out even outside browser teams. And since afaik it's browser implementors who are defining the spec nowadays, I have some hope that they'll see the light.
- beaconstudios 7y agoWhy not introduce a new layout rule? `text-align: tex-justify `