Skip to content

Commit 3090b58

Browse files
committed
Make word-spacing: <percentage> additional rather than absolute. See <http://lists.w3.org/Archives/Public/www-style/2012Jan/0147.html>.
1 parent f40c251 commit 3090b58

2 files changed

Lines changed: 19 additions & 17 deletions

File tree

css3-text/Overview.html

Lines changed: 12 additions & 12 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 6 January 2012</h2>
3535
<dt>This version:
3636

3737
<dd><a href="http://dev.w3.org/csswg/css3-text/">$Date: 2012/01/06
38-
05:12:54 $ (CVS $Revision$)</a> <!--
38+
22:37:37 $ (CVS $Revision$)</a> <!--
3939
<dd><a href="http://www.w3.org/TR/2012/WD-css3-text-20120106/">http://www.w3.org/TR/2012/WD-css3-text-20120106/</a></dd>
4040
-->
4141

@@ -2564,16 +2564,16 @@ <h2 id=spacing><span class=secno>8. </span> Spacing</h2>
25642564
title="&lt;spacing-limit&gt;:&lt;length&gt;">&lsquo;<code
25652565
class=css>&lt;length&gt;</code>&rsquo;</dfn>
25662566

2567-
<dd>Specifies extra spacing <em>in addition to</em> the normal spacing.
2568-
Values may be negative, but there may be implementation-dependent limits.
2569-
2567+
<dd>Specifies extra spacing <em>in addition to</em> the normal optimum
2568+
spacing. Values may be negative, but there may be
2569+
implementation-dependent limits.
25702570

25712571
<dt><dfn id=ltpercentagegt
25722572
title="&lt;spacing-limit&gt;:&lt;percentage&gt;">&lsquo;<code
25732573
class=css>&lt;percentage&gt;</code>&rsquo;</dfn>
25742574

2575-
<dd>Specifies the spacing as a percentage of the affected character. Only
2576-
valid on &lsquo;<a href="#word-spacing0"><code
2575+
<dd>Specifies the additional spacing as a percentage of the affected
2576+
character. Only valid on &lsquo;<a href="#word-spacing0"><code
25772577
class=property>word-spacing</code></a>&rsquo;. Negative values are not
25782578
allowed.
25792579
</dl>
@@ -2655,18 +2655,18 @@ <h3 id=word-spacing><span class=secno>8.1. </span> Word Spacing: the
26552655
<p>This property specifies the minimum, maximum, and optimal spacing
26562656
between &ldquo;words&rdquo;.
26572657

2658-
<p>Spacing is applied to each word-separator character left in the text
2659-
after the <a href="#white-space-rules">white space processing rules</a>
2660-
have been applied, and should be applied half on each side of the
2661-
character.
2658+
<p>Additional spacing is applied to each word-separator character left in
2659+
the text after the <a href="#white-space-rules">white space processing
2660+
rules</a> have been applied, and should be applied half on each side of
2661+
the character.
26622662

26632663
<div class=example>
26642664
<p>The following example will make all the spaces between words in Arabic
26652665
be rendered as zero-width, and double the width of each space in English:
26662666

26672667

2668-
<pre>:lang(ar) { word-spacing: 0%; }
2669-
<!-- -->:lang(en) { word-spacing: 200%; }</pre>
2668+
<pre>:lang(ar) { word-spacing: -100%; }
2669+
<!-- -->:lang(en) { word-spacing: 100%; }</pre>
26702670

26712671
<p>The following example will <em>add</em> half the the width of the
26722672
&ldquo;0&rdquo; glyph to word spacing character [[CSS3VALUES]]:

css3-text/Overview.src.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,12 +1856,14 @@ <h2 id="spacing">
18561856
by the current font and/or the user agent. See <a href="#normal-spacing">below</a>.
18571857
</dd>
18581858
<dt><dfn title="&lt;spacing-limit&gt;:&lt;length&gt;">''&lt;length&gt;''</dfn>
1859-
<dd>Specifies extra spacing <em>in addition to</em> the normal spacing.
1859+
<dd>Specifies extra spacing <em>in addition to</em> the normal optimum
1860+
spacing.
18601861
Values may be negative, but there may be implementation-dependent
18611862
limits.
18621863
</dd>
18631864
<dt><dfn title="&lt;spacing-limit&gt;:&lt;percentage&gt;">''&lt;percentage&gt;''</dfn>
1864-
<dd>Specifies the spacing as a percentage of the affected character.
1865+
<dd>Specifies the additional spacing as a percentage of the affected
1866+
character.
18651867
Only valid on 'word-spacing'. Negative values are not allowed.
18661868
</dd>
18671869
</dl>
@@ -1936,7 +1938,7 @@ <h3 id="word-spacing">
19361938
<p>This property specifies the minimum, maximum, and optimal spacing
19371939
between &ldquo;words&rdquo;.
19381940

1939-
<p>Spacing is applied to each word-separator character
1941+
<p>Additional spacing is applied to each word-separator character
19401942
left in the text after the <a href="#white-space-rules">white space
19411943
processing rules</a> have been applied, and should be applied half on
19421944
each side of the character.
@@ -1945,8 +1947,8 @@ <h3 id="word-spacing">
19451947
<p>The following example will make all the spaces between words in Arabic
19461948
be rendered as zero-width, and double the width of each space in English:
19471949

1948-
<pre>:lang(ar) { word-spacing: 0%; }
1949-
<!-- -->:lang(en) { word-spacing: 200%; }</pre>
1950+
<pre>:lang(ar) { word-spacing: -100%; }
1951+
<!-- -->:lang(en) { word-spacing: 100%; }</pre>
19501952

19511953
<p>The following example will <em>add</em> half the the width of the
19521954
&ldquo;0&rdquo; glyph to word spacing character [[CSS3VALUES]]:

0 commit comments

Comments
 (0)