[Webkit-unassigned] [Bug 249840] New: [text-wrap] Support text-wrap: balance

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 23 00:15:10 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=249840

            Bug ID: 249840
           Summary: [text-wrap] Support text-wrap: balance
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ntim at apple.com
            Blocks: 245561

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.


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=245561
[Bug 245561] Implement text-wrap and text-group-align CSS properties
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221223/878bc8ed/attachment.htm>


More information about the webkit-unassigned mailing list