Skip to content

Commit 5e05266

Browse files
committed
[css-text] Redefine text-wrap: balance in terms of remaining space. Probably needs better linkification at some point, but this'll do as a start.
1 parent ac44728 commit 5e05266

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

css-text-4/Overview.bs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -234,20 +234,17 @@ Text Wrap Settings: the 'text-wrap' property</h3>
234234
For block-level elements that
235235
contain line boxes as direct children,
236236
line breaks are chosen to balance
237-
the <a>inline-size</a> those line boxes consume,
237+
the remaining (empty) space in each line box,
238238
if better balance than ''text-wrap/normal'' is possible.
239239
This must not change the number of line boxes
240240
the block would contain
241241
if 'text-wrap' were set to ''text-wrap/normal''.
242242

243-
For balancing purposes,
244-
the <a>inline-size</a> to consider includes
245-
any length taken up
246-
by floats that shorten the line box.
247-
The <a>inline-size</a> to consider comes before
248-
any adjustments for justification.
243+
The remaining space to consider
244+
is that which remains after placing floats and inline content,
245+
but before any adjustments due to text justification.
249246
Line boxes are balanced when the standard deviation
250-
from the average <a>inline-size</a> consumed
247+
from the average <a>inline-size</a> of the remaining space in eacn line box
251248
is reduced over the block
252249
(including lines that end in a forced break).
253250

0 commit comments

Comments
 (0)