Skip to content

Commit 54a74c1

Browse files
committed
[css-text-4] more text-wrap:balance tweaks
1 parent 71d9c4a commit 54a74c1

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

css-text-4/Overview.bs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,16 +197,19 @@ Text Wrap Settings: the 'text-wrap' property</h3>
197197
For block-level elements that
198198
contain line boxes as direct children,
199199
line breaks are chosen to balance
200-
the <a>inline-size</a> those line boxes consume.
200+
the <a>inline-size</a> those line boxes consume,
201+
if better balance than ''text-wrap/normal'' is possible.
201202
This must not change the number of line boxes
202203
the block would contain
203204
if 'text-wrap' were set to ''text-wrap/normal''.
204205

205206
For balancing purposes,
206207
the <a>inline-size</a> to consider includes
207208
any length taken up
208-
by floats that shorten the line box.
209-
Line boxes are balanced when the deviation
209+
by floats that shorten the line box.
210+
The <a>inline-size</a> to consider comes before
211+
any adjustments for justification.
212+
Line boxes are balanced when the standard deviation
210213
from the average <a>inline-size</a> consumed
211214
is reduced over the block
212215
(including lines that end in a forced break).

css-text-4/Overview.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<h1 class="p-name no-ref" id="title">CSS Text Module Level 4</h1>
3333

3434
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Unofficial Proposal Draft,
35-
<time class="dt-updated" datetime="2015-01-26">26 January 2015</time></span></h2>
35+
<time class="dt-updated" datetime="2015-01-27">27 January 2015</time></span></h2>
3636

3737
<div data-fill-with="spec-metadata">
3838
<dl>
@@ -57,7 +57,7 @@ <h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="cont
5757

5858
<div data-fill-with="warning"></div>
5959

60-
<p class="copyright" data-fill-with="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2014 <a href="http://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> (<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href="http://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href="http://www.keio.ac.jp/">Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>), All Rights Reserved. W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> rules apply.
60+
<p class="copyright" data-fill-with="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2015 <a href="http://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> (<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href="http://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href="http://www.keio.ac.jp/">Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>), All Rights Reserved. W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> rules apply.
6161
</p>
6262

6363
<hr title="Separator for header">
@@ -521,7 +521,8 @@ <h3 class="heading settled" data-level="5.1" id="text-wrap"><span class="secno">
521521
For block-level elements that
522522
contain line boxes as direct children,
523523
line breaks are chosen to balance
524-
the <a data-link-type="dfn" href="http://dev.w3.org/csswg/css-writing-modes-3/#inline-size">inline-size</a> those line boxes consume.
524+
the <a data-link-type="dfn" href="http://dev.w3.org/csswg/css-writing-modes-3/#inline-size">inline-size</a> those line boxes consume,
525+
if better balance than <a class="css" data-link-for="text-wrap" data-link-type="maybe" href="#valdef-text-wrap-normal">normal</a> is possible.
525526
This must not change the number of line boxes
526527
the block would contain
527528
if <a class="property" data-link-type="propdesc" href="#propdef-text-wrap">text-wrap</a> were set to <a class="css" data-link-for="text-wrap" data-link-type="maybe" href="#valdef-text-wrap-normal">normal</a>.
@@ -530,8 +531,10 @@ <h3 class="heading settled" data-level="5.1" id="text-wrap"><span class="secno">
530531
<p>For balancing purposes,
531532
the <a data-link-type="dfn" href="http://dev.w3.org/csswg/css-writing-modes-3/#inline-size">inline-size</a> to consider includes
532533
any length taken up
533-
by floats that shorten the line box.
534-
Line boxes are balanced when the deviation
534+
by floats that shorten the line box.
535+
The <a data-link-type="dfn" href="http://dev.w3.org/csswg/css-writing-modes-3/#inline-size">inline-size</a> to consider comes before
536+
any adjustments for justification.
537+
Line boxes are balanced when the standard deviation
535538
from the average <a data-link-type="dfn" href="http://dev.w3.org/csswg/css-writing-modes-3/#inline-size">inline-size</a> consumed
536539
is reduced over the block
537540
(including lines that end in a forced break).</p>

0 commit comments

Comments
 (0)