Safari recently shipped a working implementation of CSS text-wrap: pretty, which uses dynamic programming to create balanced line breaks instead of greedy algorithms. However, combining it with text-align: justify creates ugly results with excessively wide inter-word spacing. The issue stems from the algorithm targeting

3m read timeFrom matklad.github.io
Post cover image

Sort: