NEW332332
text-wrap-style: pretty should only penalize the last line's length when it is an orphan
https://bugs.webkit.org/show_bug.cgi?id=332332
Summary text-wrap-style: pretty should only penalize the last line's length when it i...
Yulun Wu
Reported 2026-11-18 21:15:02 PST

Parent bug: https://bugs.webkit.org/show_bug.cgi?id=332074

This bug tracks work for:

Case 2 (inline-size: 28em): with auto, the lines are 30, 30, 30, 30 and 16 characters. With pretty, they are 27, 27, 27, 27 and 28 characters, exactly the same as balance.

The proposed fix is to only penalize the last line's length when it is an orphan. This would prevent a moderately short last line from taking content from preceding lines.

Attachments
Yulun Wu
Comment 1 2026-11-18 21:17:43 PST
Note You need to log in before you can comment on or make changes to this bug.