Skip to content

Commit a6c2c93

Browse files
committed
[css-text] Make normal compute to zero, allow letter-spacing to justify.
1 parent 071be97 commit a6c2c93

File tree

2 files changed

+28
-59
lines changed

2 files changed

+28
-59
lines changed

css-text/Overview.html

Lines changed: 15 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2219,7 +2219,7 @@ <h3 id=text-justify><span class=secno>7.3. </span> Justification Method:
22192219
class=css>inter-word</code></dfn>
22202220

22212221
<dd>Justification adjusts spacing at <a href="#word-separator"><i>word
2222-
separators</i></a> (effectively varying the used ‘<a
2222+
separators</i></a> only (effectively varying the used ‘<a
22232223
href="#word-spacing0"><code class=property>word-spacing</code></a>’ on
22242224
the line). This behavior is typical for languages that separate words
22252225
using spaces, like English or Korean.
@@ -2658,8 +2658,7 @@ <h3 id=letter-spacing><span class=secno>8.2. </span> Tracking: the ‘<a
26582658
<tr>
26592659
<th>Computed value:
26602660

2661-
<td>an absolute length or the keyword ‘<code
2662-
class=css>normal</code>
2661+
<td>an absolute length
26632662

26642663
<tr>
26652664
<th>Animatable:
@@ -2673,19 +2672,23 @@ <h3 id=letter-spacing><span class=secno>8.2. </span> Tracking: the ‘<a
26732672
<td>N/A
26742673
</table>
26752674

2676-
<p>This property specifies additional spacing (tracking) between adjacent
2677-
<a href="#character"><i>characters</i></a>. Letter-spacing is applied
2678-
after <a
2675+
<p>This property specifies additional spacing between adjacent <a
2676+
href="#character"><i>characters</i></a> (commonly called <dfn
2677+
id=tracking>tracking</dfn>). Letter-spacing is applied after <a
26792678
href="http://www.w3.org/TR/css3-writing-modes/#text-direction">bidi
26802679
reordering</a> and is in addition to any ‘<a href="#word-spacing0"><code
2681-
class=property>word-spacing</code></a>’. Values have the following
2682-
meanings:
2680+
class=property>word-spacing</code></a>’. Depending on the justification
2681+
rules in effect, user agents may further increase or decrease the space
2682+
between <a href="#character"><i>characters</i></a> in order to <a
2683+
href="#text-justify">justify text</a>.
2684+
2685+
<p>Values have the following meanings:
26832686

26842687
<dl>
26852688
<dt><dfn id=normal4 title="normal!!word-spacing"><code
26862689
class=css>normal</code></dfn>
26872690

2688-
<dd>No additional spacing is applied.
2691+
<dd>No additional spacing is applied. Computes to zero.
26892692

26902693
<dt><dfn id=length0 title="&lt;length&gt;!!word-spacing"><code
26912694
class=css>&lt;length&gt;</code></dfn>
@@ -2695,29 +2698,6 @@ <h3 id=letter-spacing><span class=secno>8.2. </span> Tracking: the ‘<a
26952698
there may be implementation-dependent limits.
26962699
</dl>
26972700

2698-
<div class=issue>
2699-
<p>CSS2.1 defines that ‘<a href="#letter-spacing0"><code
2700-
class=property>letter-spacing</code></a>’ values other than ‘<code
2701-
class=css>normal</code>’ forbid the adjustment of letter-spacing during
2702-
justification. This means that tracking can't be used in conjunction
2703-
with, e.g. CJK justification methods. However, allowing it would mean we
2704-
need a control for disabling it; German, for example, avoids
2705-
letter-spacing for justification because it's used for emphasis. See <a
2706-
href="http://lists.w3.org/Archives/Public/www-style/2013May/0280.html">this
2707-
thread</a>.
2708-
2709-
<p>Proposed text:
2710-
2711-
<blockquote>
2712-
<p>[Unless the ‘<code class=css>fixed</code>’ keyword is specified,]
2713-
Depending on the justification rules in effect, user agents may further
2714-
increase or decrease the space between <a
2715-
href="#character"><i>characters</i></a> in order to justify text. See
2716-
<a href="#text-justify0"><code
2717-
class=property>text-justify</code></a>’ for details.
2718-
</blockquote>
2719-
</div>
2720-
27212701
<p>For the purpose of ‘<a href="#letter-spacing0"><code
27222702
class=property>letter-spacing</code></a>’, each consecutive run of
27232703
atomic inlines (such as images and inline blocks) is treated as a single
@@ -4275,6 +4255,9 @@ <h2 class=no-num id=index> Index</h2>
42754255
<li>text-transform, <a href="#text-transform0"
42764256
title="section 2.1."><strong>2.1.</strong></a>
42774257

4258+
<li>tracking, <a href="#tracking"
4259+
title="section 8.2."><strong>8.2.</strong></a>
4260+
42784261
<li>uppercase
42794262
<ul>
42804263
<li>text-transform, <a href="#uppercase"

css-text/Overview.src.html

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,7 @@ <h3 id="text-justify">
16041604
to improve readability or for accessibility purposes.
16051605

16061606
<dt><dfn title="inter-word!!text-justify">''inter-word''</dfn></dt>
1607-
<dd>Justification adjusts spacing at <i>word separators</i>
1607+
<dd>Justification adjusts spacing at <i>word separators</i> only
16081608
(effectively varying the used 'word-spacing' on the line).
16091609
This behavior is typical for languages that separate words using spaces,
16101610
like English or Korean.
@@ -1958,7 +1958,7 @@ <h3 id="letter-spacing">
19581958
</tr>
19591959
<tr>
19601960
<th>Computed&#160;value:</th>
1961-
<td>an absolute length or the keyword ''normal''
1961+
<td>an absolute length
19621962
</tr>
19631963
<tr>
19641964
<th>Animatable:
@@ -1968,39 +1968,25 @@ <h3 id="letter-spacing">
19681968
<td>N/A
19691969
</table>
19701970

1971-
<p>This property specifies additional spacing (tracking)
1972-
between adjacent <i>characters</i>.
1973-
Letter-spacing is applied after
1974-
<a href="http://www.w3.org/TR/css3-writing-modes/#text-direction">bidi reordering</a>
1975-
and is in addition to any 'word-spacing'.
1976-
Values have the following meanings:
1971+
<p>This property specifies additional spacing between adjacent <i>characters</i>
1972+
(commonly called <dfn>tracking</dfn>).
1973+
Letter-spacing is applied after
1974+
<a href="http://www.w3.org/TR/css3-writing-modes/#text-direction">bidi reordering</a>
1975+
and is in addition to any 'word-spacing'.
1976+
Depending on the justification rules in effect,
1977+
user agents may further increase or decrease the space between <i>characters</i>
1978+
in order to <a href="#text-justify">justify text</a>.
1979+
1980+
<p>Values have the following meanings:
19771981

19781982
<dl>
19791983
<dt><dfn title="normal!!word-spacing">''normal''</dfn>
1980-
<dd>No additional spacing is applied.
1984+
<dd>No additional spacing is applied. Computes to zero.
19811985
<dt><dfn title="&lt;length&gt;!!word-spacing">''&lt;length&gt;''</dfn>
19821986
<dd>Specifies <em>additional</em> spacing between <i>characters</i>.
19831987
Values may be negative, but there may be implementation-dependent limits.
19841988
</dl>
19851989

1986-
<div class="issue">
1987-
<p>CSS2.1 defines that 'letter-spacing' values other than ''normal''
1988-
forbid the adjustment of letter-spacing during justification.
1989-
This means that tracking can't be used in conjunction with, e.g. CJK justification methods.
1990-
However, allowing it would mean we need a control for disabling it;
1991-
German, for example, avoids letter-spacing for justification because it's used for emphasis.
1992-
See <a href="http://lists.w3.org/Archives/Public/www-style/2013May/0280.html">this thread</a>.
1993-
1994-
<p>Proposed text:
1995-
<blockquote>
1996-
<p>[Unless the ''fixed'' keyword is specified,]
1997-
Depending on the justification rules in effect,
1998-
user agents may further increase or decrease the space between <i>characters</i>
1999-
in order to justify text.
2000-
See 'text-justify' for details.
2001-
</blockquote>
2002-
</div>
2003-
20041990
<p>For the purpose of 'letter-spacing', each consecutive run of atomic
20051991
inlines (such as images and inline blocks) is treated as a single
20061992
<i>character</i>.

0 commit comments

Comments
 (0)