Skip to content

Commit 651c037

Browse files
committed
Add some clarifications to 'text-justify' and 'text-spacing'.
1 parent f834d34 commit 651c037

2 files changed

Lines changed: 34 additions & 9 deletions

File tree

css3-text/Overview.html

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 19 August 2011</h2>
3535
<dt>This version:
3636

3737
<dd><a href="http://dev.w3.org/csswg/css3-text/Overview.html">$Date:
38-
2011/08/16 22:54:23 $ (CVS $Revision$)</a> <!--
38+
2011/08/19 01:01:30 $ (CVS $Revision$)</a> <!--
3939
<dd><a href="http://www.w3.org/TR/2011/WD-css3-text-20110819/">http://www.w3.org/TR/2011/WD-css3-text-20110819/</a></dd>
4040
-->
4141

@@ -2571,11 +2571,12 @@ <h3 id=text-justify><span class=secno>7.3. </span> Justification Method:
25712571
</table>
25722572

25732573
<p>This property selects the justification method used when a line's
2574-
alignment is set to &lsquo;<code class=css>justify</code>&rsquo;. (See
2574+
alignment is set to &lsquo;<code class=css>justify</code>&rsquo; (see
25752575
&lsquo;<a href="#text-align0"><code
2576-
class=property>text-align</code></a>&rsquo;.) The property applies to
2577-
block containers, but the UA may (but is not required to) also support it
2578-
on inline elements. It takes the following values:
2576+
class=property>text-align</code></a>&rsquo;), primarily by controlling
2577+
which scripts' characters are adjusted together or separately. The
2578+
property applies to block containers, but the UA may (but is not required
2579+
to) also support it on inline elements. It takes the following values:
25792580

25802581
<dl>
25812582
<dt><dfn id=auto0 title="text-justify:auto">&lsquo;<code
@@ -2851,8 +2852,13 @@ <h3 id=text-justify><span class=secno>7.3. </span> Justification Method:
28512852
there are traditionally no expansion opportunities between consecutive EM
28522853
DASH U+2014, HORIZONTAL BAR U+2015, HORIZONTAL ELLIPSIS U+2026, or TWO DOT
28532854
LEADER U+2025 characters <a href="#JLREQ"
2854-
rel=biblioentry>[JLREQ]<!--{{JLREQ}}--></a>; thus a UA may assign these
2855-
characters to the "never" prioritization level.
2855+
rel=biblioentry>[JLREQ]<!--{{JLREQ}}--></a>; thus a UA might assign these
2856+
characters to the "never" prioritization level. As another example,
2857+
certain fullwidth punctuation characters are considered to contain an
2858+
expansion opportunity (see &lsquo;<a href="#text-spacing"><code
2859+
class=property>text-spacing</code></a>&rsquo;). The UA might therefore
2860+
assign these characters to a higher prioritization level than the
2861+
opportunities between ideographic characters.
28562862

28572863
<p id=justify-cursive>For justification of <a
28582864
href="#cursive-scripts0"><i>cursive scripts</i></a>, words may be expanded
@@ -3348,6 +3354,14 @@ <h3 id=text-spacing-prop><span class=secno>8.3. </span> <a
33483354
glyph, then the spacing is determined by the innermost element containing
33493355
that glyph.
33503356

3357+
<p class=note>Values other than &lsquo;<code
3358+
class=css>normal</code>&rsquo;, &lsquo;<code class=css>none</code>&rsquo;,
3359+
&lsquo;<code class=css>trim-start</code>&rsquo;, &lsquo;<code
3360+
class=css>trim-end</code>&rsquo;, and &lsquo;<code
3361+
class=css>space-end</code>&rsquo; are at-risk and may be dropped from this
3362+
level of CSS. They are defined here currently to help work out a complete
3363+
design of this feature.
3364+
33513365
<p>Support for this property is <em>optional</em>. It is strongly
33523366
recommended for UAs that wish to support CJK typography.
33533367

css3-text/Overview.src.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,7 +1809,9 @@ <h3 id="text-justify">
18091809
</table>
18101810

18111811
<p>This property selects the justification method used when a line's
1812-
alignment is set to ''justify''. (See 'text-align'.)
1812+
alignment is set to ''justify'' (see 'text-align'), primarily by
1813+
controlling which scripts' characters are adjusted together or
1814+
separately.
18131815
The property applies to block containers, but the UA may (but
18141816
is not required to) also support it on inline elements.
18151817
It takes the following values:</p>
@@ -2018,7 +2020,11 @@ <h3 id="text-justify">
20182020
For example, there are traditionally no expansion opportunities
20192021
between consecutive EM DASH U+2014, HORIZONTAL BAR U+2015, HORIZONTAL
20202022
ELLIPSIS U+2026, or TWO DOT LEADER U+2025 characters [[JLREQ]]; thus
2021-
a UA may assign these characters to the "never" prioritization level.
2023+
a UA might assign these characters to the "never" prioritization level.
2024+
As another example, certain fullwidth punctuation characters are
2025+
considered to contain an expansion opportunity (see 'text-spacing').
2026+
The UA might therefore assign these characters to a higher prioritization
2027+
level than the opportunities between ideographic characters.
20222028

20232029
<p id="justify-cursive">For justification of <i>cursive scripts</i>,
20242030
words may be expanded through kashida elongation or other cursive
@@ -2438,6 +2444,11 @@ <h3 id="text-spacing-prop">
24382444
to a particular glyph, then the spacing is determined by the innermost
24392445
element containing that glyph.
24402446

2447+
<p class="note">Values other than ''normal'', ''none'', ''trim-start'',
2448+
''trim-end'', and ''space-end'' are at-risk and may be dropped from
2449+
this level of CSS. They are defined here currently to help work out
2450+
a complete design of this feature.
2451+
24412452
<p>Support for this property is <em>optional</em>. It is strongly
24422453
recommended for UAs that wish to support CJK typography.</p>
24432454

0 commit comments

Comments
 (0)