WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
249840
[text-wrap] Support text-wrap: balance
https://bugs.webkit.org/show_bug.cgi?id=249840
Summary
[text-wrap] Support text-wrap: balance
Tim Nguyen (:ntim)
Reported
2022-12-23 00:15:10 PST
https://drafts.csswg.org/css-text-4/#valdef-text-wrap-balance
> balance
Same as wrap for inline boxes. For block containers that establish an inline formatting context, line breaks are chosen to balance the remaining (empty) space in each line box, if better balance than wrap is possible. This must not change the number of line boxes the block would contain if text-wrap were set to wrap. The remaining space to consider is that which remains after placing floats and inline content, but before any adjustments due to text justification. Line boxes are balanced when the standard deviation from the average inline-size of the remaining space in each line box is reduced over the block (including lines that end in a forced break). The exact algorithm is UA-defined. UAs may treat this value as wrap if there are more than ten lines to balance.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-12-23 00:16:46 PST
<
rdar://problem/103663513
>
Tim Nguyen (:ntim)
Comment 2
2022-12-23 01:32:47 PST
***
Bug 230473
has been marked as a duplicate of this bug. ***
David Choi
Comment 3
2023-06-27 15:44:39 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/15348
David Choi
Comment 4
2023-08-07 15:39:56 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/16455
David Choi
Comment 5
2023-08-15 15:20:39 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/16723
EWS
Comment 6
2023-08-16 19:53:13 PDT
Committed
266980@main
(2d299a2dd8bb): <
https://commits.webkit.org/266980@main
> Reviewed commits have been landed. Closing PR #16723 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