Skip to content

Commit

Permalink
[css-text-4] Loosen requirement about balancing not affecting the lin…
Browse files Browse the repository at this point in the history
…e count #10186
  • Loading branch information
fantasai committed May 17, 2024
1 parent 8998f97 commit 64abcd2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion css-text-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5530,10 +5530,15 @@ Selecting How to Wrap: the 'text-wrap-style' property</h3>
Line breaks are chosen to balance
the remaining (empty) space in each line box,
if better balance than ''text-wrap-style/auto'' is possible.
This must not change the number of line boxes
This should avoid changing--
and in the case of 5 or fewer lines must not change--
the number of line boxes
the block would contain
if 'text-wrap' were set to ''text-wrap-style/auto''.

Note: The height of the line boxes may nevertheless change,
due to changes in which content appears together on one line.

<wpt>
white-space/text-wrap-balance-001.html
white-space/text-wrap-balance-002.html
Expand Down Expand Up @@ -13115,6 +13120,9 @@ Changes</h2>
Significant changes since the <a href="https://www.w3.org/TR/2024/WD-css-text-4-20240219/">19 February 2024 Working Draft</a> include:
* Renamed the 'text-spacing-trim' value <css>trim-auto</css> to ''trim-both''.
(<a href="https://github.com/w3c/csswg-drafts/issues/10161">Issue 10161</a>)
* Loosened requirement about not changing lines for ''text-wrap-style: balance''
for cases with large numbers of lines.
(<a href="https://github.com/w3c/csswg-drafts/issues/10186">Issue 10186</a>)
Significant changes since the <a href="https://www.w3.org/TR/2023/WD-css-text-4-20231020/">20 October 2023 Working Draft</a> include:
* Restored accidentally deleted “and each line after a [=forced line break=]”
Expand Down

0 comments on commit 64abcd2

Please sign in to comment.