Skip to content

Commit 785c56a

Browse files
author
kojiishi
committed
[css-text] drop minimum/optimum/maximum values for word-spacing as per resolution at Paris F2F
--HG-- extra : rebase_source : 5b6b3550e307bb74dadae59025b9b5c41021b741
1 parent acda274 commit 785c56a

2 files changed

Lines changed: 41 additions & 44 deletions

File tree

css-text/Overview.html

Lines changed: 32 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2364,9 +2364,8 @@ <h4 id=justify-symbols><span class=secno>7.3.2. </span> Handling Symbols
23642364

23652365
<h4 id=justify-limits><span class=secno>7.3.3. </span> Unexpandable Text</h4>
23662366

2367-
<p>The ‘<a href="#word-spacing0"><code
2368-
class=property>word-spacing</code></a>’ property can specify limits on
2369-
<a href="#expansion-opportunity"><i>expansion opportunities</i></a>
2367+
<p>The UA may define limits on <a
2368+
href="#expansion-opportunity"><i>expansion opportunities</i></a>
23702369
introduced by <a href="#word-separator"><i>word separators</i></a>. How
23712370
any remaining space is distributed once all <a
23722371
href="#expansion-opportunity"><i>expansion opportunities</i></a> reach
@@ -2410,8 +2409,7 @@ <h4 id=justify-algos><span class=secno>7.3.5. </span> Possible Algorithms</h4>
24102409
justification algorithm might use a simple greedy method for determining
24112410
line breaks, then distribute leftover space. This algorithm could follow
24122411
the guidelines by expanding word spaces first, expanding between letters
2413-
only if ‘<a href="#word-spacing0"><code
2414-
class=property>word-spacing</code></a>’ hit a limit.
2412+
only if the spaces between words hit a limit defined by the UA.
24152413

24162414
<p>A more sophisticated but slower ‘<code class=css>inter-word</code>
24172415
justification algorithm might use a Knuth/Plass method where <a
@@ -2465,10 +2463,10 @@ <h2 id=spacing><span class=secno>8. </span> Spacing</h2>
24652463
example, double or eliminate word spacing.
24662464

24672465
<div class=example>
2468-
<p>In the following example, word spacing is halved, but may expand up to
2469-
its full amount if needed for text justification.
2466+
<p>In the following example, word spacing is halved, but may expand
2467+
  if needed for text justification.
24702468

2471-
<pre>p { word-spacing: -50% 0%; }</pre>
2469+
<pre>p { word-spacing: -50%; }</pre>
24722470
</div>
24732471

24742472
<h3 id=word-spacing><span class=secno>8.1. </span> Word Spacing: the ‘<a
@@ -2486,7 +2484,7 @@ <h3 id=word-spacing><span class=secno>8.1. </span> Word Spacing: the ‘<a
24862484
<th><a href="#values">Value</a>:
24872485

24882486
<td>[ normal | <var>&lt;length&gt;</var> |
2489-
<var>&lt;percentage&gt;</var>]{1,3}
2487+
<var>&lt;percentage&gt;</var>]
24902488

24912489
<tr>
24922490
<th>Initial:
@@ -2533,10 +2531,9 @@ <h3 id=word-spacing><span class=secno>8.1. </span> Word Spacing: the ‘<a
25332531
<td>N/A
25342532
</table>
25352533

2536-
<p>This property specifies the optimum, maximum, and minimum spacing (in
2537-
that order <span class=issue>Is this a good order?</span>) between
2538-
“words”. Missing values are assumed to be ‘<code
2539-
class=css>normal</code>’. Values are interpreted as defined below:
2534+
<p>This property specifies additional spacing between “words”. Missing
2535+
values are assumed to be ‘<code class=css>normal</code>’. Values are
2536+
interpreted as defined below:
25402537

25412538
<dl>
25422539
<dt><dfn id=normal3 title="normal!!word-spacing"><code
@@ -2580,27 +2577,29 @@ <h3 id=word-spacing><span class=secno>8.1. </span> Word Spacing: the ‘<a
25802577

25812578
<pre>p { word-spacing: 0.5ch; }</pre>
25822579
</div>
2583-
2584-
<p>In the absence of justification the optimum spacing must be used. The
2585-
text justification process may alter the spacing from its optimum (see the
2586-
<a href="#text-justify"><code class=property>text-justify</code></a>
2587-
property, above) but must not violate the minimum spacing limit and should
2588-
also avoid exceeding the maximum. The UA may also use the difference
2589-
between the minimum/maximum limits and the optimum as input into a
2590-
weighting algorithm for justification.
2580+
<!--
2581+
<p>In the absence of justification the optimum spacing must be used.
2582+
The text justification process may alter the spacing from its optimum
2583+
(see the <a href="#text-justify">'text-justify'</a> property, above)
2584+
but must not violate the minimum spacing limit
2585+
and should also avoid exceeding the maximum.
2586+
The UA may also use the difference between the minimum/maximum limits
2587+
and the optimum as input into a weighting algorithm for justification.
25912588
25922589
<p>The used optimum and maximum spacing is floored at the minimum.
2593-
Similarly if the maximum is less than the optimum, then the used optimum
2594-
is limited to the used maximum.
2595-
2596-
<p><dfn id=normal-spacing title="normal spacing">Normal spacing</dfn>:
2597-
Although ‘<code class=css>normal</code>’ minimum and maximum spacing
2598-
limits are UA-defined, they must be defined relative to the optimum so
2599-
that the limits increase and decrease with changes to the optimum spacing.
2600-
Normal limits may also vary according to the value of the <a
2601-
href="#text-justify"><code class=property>text-justify</code></a>
2602-
property, the element's language, some measure of the amount of text on a
2603-
line (e.g. block width divided by font size), and/or other factors.
2590+
Similarly if the maximum is less than the optimum,
2591+
then the used optimum is limited to the used maximum.
2592+
2593+
<p><dfn id="normal-spacing" title="normal spacing">Normal spacing</dfn>:
2594+
Although ''normal'' minimum and maximum spacing limits are UA-defined,
2595+
they must be defined relative to the optimum
2596+
so that the limits increase and decrease with changes to the optimum spacing.
2597+
Normal limits may also vary according to
2598+
the value of the <a href="#text-justify">'text-justify'</a> property,
2599+
the element's language,
2600+
some measure of the amount of text on a line (e.g. block width divided by font size),
2601+
and/or other factors.
2602+
-->
26042603

26052604
<p><dfn id=word-separator
26062605
title="word-separator character | word separator">Word-separator
@@ -4144,9 +4143,6 @@ <h2 class=no-num id=index> Index</h2>
41444143
title="section 8.2."><strong>8.2.</strong></a>
41454144
</ul>
41464145

4147-
<li>normal spacing, <a href="#normal-spacing"
4148-
title="section 8.1."><strong>8.1.</strong></a>
4149-
41504146
<li>nowrap
41514147
<ul>
41524148
<li>white-space, <a href="#nowrap"
@@ -4507,7 +4503,7 @@ <h2 class=no-num id=property-index> Property Index</h2>
45074503
<tr>
45084504
<th><a class=property href="#word-spacing0">word-spacing</a>
45094505

4510-
<td>[ normal | &lt;length&gt; | &lt;percentage&gt;]{1,3}
4506+
<td>[ normal | &lt;length&gt; | &lt;percentage&gt;]
45114507

45124508
<td>normal
45134509

css-text/Overview.src.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ <h4 id="justify-symbols">
17251725
<h4 id="justify-limits">
17261726
Unexpandable Text</h4>
17271727

1728-
<p>The 'word-spacing' property can specify limits on
1728+
<p>The UA may define limits on
17291729
<i>expansion opportunities</i> introduced by <i>word separators</i>.
17301730
How any remaining space is distributed once all <i>expansion opportunities</i>
17311731
reach their specified limits is up to the UA.
@@ -1762,7 +1762,7 @@ <h4 id="justify-algos">
17621762
might use a simple greedy method for determining line breaks,
17631763
then distribute leftover space.
17641764
This algorithm could follow the guidelines by expanding word spaces first,
1765-
expanding between letters only if 'word-spacing' hit a limit.
1765+
expanding between letters only if the spaces between words hit a limit defined by the UA.
17661766

17671767
<p>A more sophisticated but slower ''inter-word'' justification algorithm
17681768
might use a Knuth/Plass method
@@ -1809,9 +1809,9 @@ <h2 id="spacing">
18091809
making it possible to, for example, double or eliminate word spacing.
18101810

18111811
<div class="example">
1812-
<p>In the following example, word spacing is halved, but may expand up
1813-
to its full amount if needed for text justification.
1814-
<pre>p { word-spacing: -50% 0%; }</pre>
1812+
<p>In the following example, word spacing is halved, but may expand
1813+
  if needed for text justification.
1814+
<pre>p { word-spacing: -50%; }</pre>
18151815
</div>
18161816

18171817
<h3 id="word-spacing">
@@ -1823,7 +1823,7 @@ <h3 id="word-spacing">
18231823
<td><dfn>word-spacing</dfn>
18241824
<tr>
18251825
<th><a href="#values">Value</a>:
1826-
<td>[ normal | <var>&lt;length&gt;</var> | <var>&lt;percentage&gt;</var>]{1,3}
1826+
<td>[ normal | <var>&lt;length&gt;</var> | <var>&lt;percentage&gt;</var>]
18271827
<tr>
18281828
<th>Initial:
18291829
<td>normal
@@ -1851,8 +1851,7 @@ <h3 id="word-spacing">
18511851
<td>N/A
18521852
</table>
18531853

1854-
<p>This property specifies the optimum, maximum, and minimum spacing
1855-
(in that order <span class="issue">Is this a good order?</span>)
1854+
<p>This property specifies additional spacing
18561855
between &ldquo;words&rdquo;.
18571856
Missing values are assumed to be ''normal''.
18581857
Values are interpreted as defined below:
@@ -1889,6 +1888,7 @@ <h3 id="word-spacing">
18891888
<pre>p { word-spacing: 0.5ch; }</pre>
18901889
</div>
18911890

1891+
<!--
18921892
<p>In the absence of justification the optimum spacing must be used.
18931893
The text justification process may alter the spacing from its optimum
18941894
(see the <a href="#text-justify">'text-justify'</a> property, above)
@@ -1910,6 +1910,7 @@ <h3 id="word-spacing">
19101910
the element's language,
19111911
some measure of the amount of text on a line (e.g. block width divided by font size),
19121912
and/or other factors.
1913+
-->
19131914

19141915
<p><dfn id="word-separator" title="word-separator character | word separator">Word-separator characters</dfn> include
19151916
the space (U+0020), the no-break space (U+00A0), the Ethiopic word space (U+1361),

0 commit comments

Comments
 (0)