Bug 268780
| Summary: | text-wrap: balance prefers longer lines at the end of the block | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Vitor Roriz <vitor.roriz> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Vitor Roriz
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
<rdar://problem/122338948>
Vitor Roriz
Pull request: https://github.com/WebKit/WebKit/pull/23886
EWS
Committed 274125@main (1be1a3ffb5a5): <https://commits.webkit.org/274125@main>
Reviewed commits have been landed. Closing PR #23886 and removing active labels.