Skip to content

Commit e9ce291

Browse files
committed
Fix distribute behavior to trigger justification on the last line by default.
1 parent 5b242a8 commit e9ce291

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

css3-text/Overview.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 26 January
9090
<dt>This version:
9191

9292
<dd><a href="http://dev.w3.org/csswg/css3-text/Overview.html">$Date:
93-
2011/01/25 07:00:57 $ (CVS $Revision$)</a> <!--<dd><a
93+
2011/01/26 00:18:18 $ (CVS $Revision$)</a> <!--<dd><a
9494
href="http://www.w3.org/TR/2010/WD-css3-text-20101005/">http://www.w3.org/TR/2010/WD-css3-text-20101005/</a></dd> -->
9595

9696

@@ -2339,7 +2339,7 @@ <h3 id=text-align-last><span class=secno>8.3. </span> Last Line Alignment:
23392339
property except when &lsquo;<a href="#text-align0"><code
23402340
class=property>text-align</code></a>&rsquo; is set to &lsquo;<code
23412341
class=css>justify</code>&rsquo;, in which case it is &lsquo;<code
2342-
class=css>center</code>&rsquo; when &lsquo;<a href="#text-justify0"><code
2342+
class=css>justify</code>&rsquo; when &lsquo;<a href="#text-justify0"><code
23432343
class=property>text-justify</code></a>&rsquo; is &lsquo;<code
23442344
class=css>distribute</code>&rsquo; and &lsquo;<code
23452345
class=css>start</code>&rsquo; otherwise. All other values have the same
@@ -2449,9 +2449,7 @@ <h3 id=text-justify><span class=secno>8.4. </span> Justification Method:
24492449

24502450
<dd>Justification primarily changes spacing both at word separators and at
24512451
grapheme cluster boundaries in all scripts except those in the connected
2452-
and cursive groups. This value is sometimes used in e.g. Japanese, often
2453-
with the &lsquo;<a href="#text-align-last0"><code
2454-
class=property>text-align-last</code></a>&rsquo; property.
2452+
and cursive groups. This value is sometimes used in e.g. Japanese.
24552453

24562454
<dt><a name=kashida-prop></a><a name=text-kashida-space></a> <dfn
24572455
id=kashida title="text-justify:kashida"><code>kashida</code></dfn>
@@ -2525,13 +2523,15 @@ <h3 id=text-justify><span class=secno>8.4. </span> Justification Method:
25252523
<p>How any remaining space is distributed once all expansion opportunities
25262524
reach their limits is up to the UA. If the inline contents of a line
25272525
cannot be stretched to the full width of the line box, then they must be
2528-
aligned as specified by the <span class=property><a
2529-
href="#text-align-last">&lsquo;<code
2530-
class=property>text-align-last</code>&rsquo;</a></span> property (or as
2531-
&lsquo;<code class=css>auto</code>&rsquo; if &lsquo;<a
2526+
aligned as specified by the &lsquo;<a href="#text-align-last0"><code
2527+
class=property>text-align-last</code></a>&rsquo; property. (If &lsquo;<a
25322528
href="#text-align-last0"><code
25332529
class=property>text-align-last</code></a>&rsquo; is &lsquo;<code
2534-
class=css>justify</code>&rsquo;).
2530+
class=css>justify</code>&rsquo;, then they must be aligned as for
2531+
&lsquo;<code class=css>center</code>&rsquo; if &lsquo;<a
2532+
href="#text-justify0"><code class=property>text-justify</code></a>&rsquo;
2533+
is &lsquo;<code class=css>distribute</code>&rsquo; and as &lsquo;<code
2534+
class=css>start</code>&rsquo; otherwise.)
25352535

25362536
<p>The expansion opportunity priorities for values of &lsquo;<a
25372537
href="#text-justify0"><code class=property>text-justify</code></a>&rsquo;

css3-text/Overview.src.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,7 +1666,7 @@ <h3 id="text-align-last">
16661666
<p>This property describes how the last line of a block or a line
16671667
right before a forced line break is aligned. ''auto'' is
16681668
equivalent to the value of the 'text-align' property except when
1669-
'text-align' is set to ''justify'', in which case it is ''center''
1669+
'text-align' is set to ''justify'', in which case it is ''justify''
16701670
when 'text-justify' is ''distribute'' and ''start'' otherwise.
16711671
All other values have the same meanings as in 'text-align'.</p>
16721672

@@ -1752,8 +1752,7 @@ <h3 id="text-justify">
17521752
<dd>Justification primarily changes spacing both at word separators
17531753
and at grapheme cluster boundaries in all scripts except those in
17541754
the connected and cursive groups.
1755-
This value is sometimes used in e.g. Japanese, often with the
1756-
'text-align-last' property.</dd>
1755+
This value is sometimes used in e.g. Japanese.</dd>
17571756
<dt><a name="kashida-prop"></a><a name="text-kashida-space"></a>
17581757
<dfn title="text-justify:kashida"><code>kashida</code></dfn></dt>
17591758
<dd>Justification primarily stretches Arabic and related scripts
@@ -1814,9 +1813,10 @@ <h3 id="text-justify">
18141813
<p>How any remaining space is distributed once all expansion opportunities reach their
18151814
limits is up to the UA. If the inline contents of a line cannot be
18161815
stretched to the full width of the line box, then they must be
1817-
aligned as specified by the
1818-
<span class="property"><a href="#text-align-last">'text-align-last'</a></span>
1819-
property (or as ''auto'' if 'text-align-last' is ''justify'').</p>
1816+
aligned as specified by the 'text-align-last' property. (If
1817+
'text-align-last' is ''justify'', then they must be aligned as for
1818+
''center'' if 'text-justify' is ''distribute'' and as ''start''
1819+
otherwise.)</p>
18201820

18211821
<p>The expansion opportunity priorities for values of 'text-justify'
18221822
are given in the table below. Space must be distributed evenly

0 commit comments

Comments
 (0)