Bug 268780

Summary: text-wrap: balance prefers longer lines at the end of the block
Product: WebKit Reporter: Vitor Roriz <vitor.roriz>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Vitor Roriz
Reported 2024-02-05 13:55:24 PST
When balancing, there are different results that produce the same score, i.e.: the overall deviation to the ideal line is the same for different layout configurations. The current implementation prefers to keep longer lines at the end of the block, rather than at the beginning. Although this is not a bug, since specification doesn't dictates the shape of balancing, this might look a bit weird for some authors, as we are used to the Greedy behavior of "wrap", which will have a shorter line at the end. Also, other UAs prefers to have longer lines at the beginning, so, although it is not a bug, it would make the feature less confusing for authors if we would match the same behavior.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-02-05 13:55:50 PST
Vitor Roriz
Comment 2 2024-02-05 14:00:34 PST
EWS
Comment 3 2024-02-05 19:12:34 PST
Committed 274125@main (1be1a3ffb5a5): <https://commits.webkit.org/274125@main> Reviewed commits have been landed. Closing PR #23886 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.