WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
268780
text-wrap: balance prefers longer lines at the end of the block
https://bugs.webkit.org/show_bug.cgi?id=268780
Summary
text-wrap: balance prefers longer lines at the end of the block
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
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-02-05 13:55:50 PST
<
rdar://problem/122338948
>
Vitor Roriz
Comment 2
2024-02-05 14:00:34 PST
Pull request:
https://github.com/WebKit/WebKit/pull/23886
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.
Top of Page
Format For Printing
XML
Clone This Bug