4 ms·
Why not just make this algorithm a non-default option (like hyphenation) and accept that when it's enabled floats may not be optimal?
by sjwright 8y ago
Why not just make this algorithm a non-default option (like hyphenation) and accept that when it's enabled floats may not be optimal?
- pcwalton 8y agoSure, an opt-in may be possible. But it requires some spec work and isn't something browsers can just do right now. As gsnedders points out, we'd probably have to spec the entire algorithm to avoid causing compatibility problems in the future.
- galaxyLogic 8y agoAs you suggested if there are no floats there would be no reason to NOT use the better algorithm. I personally don't use floats often and definitely not inside paragraphs. As suggested by others bad line-breaking has a bad effect on the large reading population. Also I hope they can do the thing to adjust spaces on the line so all lines look about the same length.