@@ -4463,7 +4463,7 @@ Expanding and Compressing Text</h4>
4463
4463
it is applied under the same rules as for 'word-spacing' .
4464
4464
Similarly, when space is distributed to an <a>justification opportunity</a> between
4465
4465
two <a>typographic character units</a> ,
4466
- it is applied under the same rules as for 'letter-spacing' .
4466
+ should be applied under the same rules as for 'letter-spacing' .
4467
4467
4468
4468
4469
4469
<p> A justification algorithm may divide <a>justification opportunities</a> into different priority levels.
@@ -4926,7 +4926,8 @@ Word Spacing: the 'word-spacing' property</h3>
4926
4926
letter-spacing/letter-spacing-204.html
4927
4927
</wpt>
4928
4928
4929
- <p> Letter-spacing must not be applied at the beginning or at the end of a line.
4929
+ <p> Letter-spacing must not be applied at the beginning of a line.
4930
+ Whether letter-spacing is applied at the end of a line is undefined in this level.
4930
4931
4931
4932
<wpt>
4932
4933
letter-spacing/letter-spacing-end-of-line-001.html
@@ -4937,7 +4938,7 @@ Word Spacing: the 'word-spacing' property</h3>
4937
4938
</wpt>
4938
4939
4939
4940
<div class="example">
4940
- <p> Because letter-spacing is not applied at the beginning or end of a line,
4941
+ <p> When letter-spacing is not applied at the beginning or end of a line,
4941
4942
text always fits flush with the edge of the block.
4942
4943
<pre>
4943
4944
p { letter-spacing: 1em; }
@@ -4947,7 +4948,8 @@ Word Spacing: the 'word-spacing' property</h3>
4947
4948
<p class="ls-ex good ls-fixed-width color-box" style="text-align: left"> a b c</p>
4948
4949
<p class="ls-ex good ls-fixed-width color-box" style="text-align: right"> a b c</p>
4949
4950
4950
- <p> UAs therefore must not append letter spacing to the right or trailing edge of a line:</p>
4951
+ <p> UAs therefore <em> really should not</em> [[RFC6919]]
4952
+ append letter spacing to the right or trailing edge of a line:
4951
4953
4952
4954
<p class="ls-ex bad ls-fixed-width color-box" style="text-align: right"> a b c </p>
4953
4955
</div>
@@ -4957,6 +4959,12 @@ Word Spacing: the 'word-spacing' property</h3>
4957
4959
the total letter spacing between two adjacent <a>typographic character units</a> (after bidi reordering)
4958
4960
is specified by and rendered within
4959
4961
the innermost element that <em> contains</em> the boundary between the two <a>typographic character units</a> .
4962
+ However, the UA may instead attach letter-spacing at element boundaries
4963
+ to one or the other <a>typographic character unit</a>
4964
+ using the letter-spacing value pertaining to its containing element.
4965
+
4966
+ Note: This secondary behavior is permitted in this level
4967
+ due to Web-compat concerns.
4960
4968
4961
4969
<wpt>
4962
4970
letter-spacing/letter-spacing-bidi-002.html
@@ -4970,45 +4978,45 @@ Word Spacing: the 'word-spacing' property</h3>
4970
4978
</wpt>
4971
4979
4972
4980
<div class="example">
4973
- <p> A given value of 'letter-spacing' only affects the spacing
4974
- between characters completely contained within the element for which it is specified:
4981
+ <p> An inline box is expected to only include
4982
+ letter spacing between characters completely contained within that element,
4983
+ thus excluding letter spacing on the right or trailing edge of the element:
4975
4984
4976
4985
<pre>
4977
4986
p { letter-spacing: 1em; }
4978
- span { letter-spacing: 2em; }
4979
4987
4980
4988
<p>a<span>bb</span>c</p></pre>
4981
4989
4982
- <p class="ls-ex"> a <span class="color-box"> b   b</span>  c</p>
4990
+ <p class="ls-ex good "> a <span class="color-box"> b b</span>  c</p>
4983
4991
4984
- <p> This also means that applying 'letter-spacing' to
4985
- an element containing only a single character
4986
- has no effect on the rendered result:
4992
+ <p class="ls-ex bad"> a <span class="color-box"> b b </span> c</p>
4993
+
4994
+ <p> Consequently a given value of 'letter-spacing' is expected
4995
+ to only affect the spacing between characters
4996
+ completely contained within the element for which it is specified:
4987
4997
4988
4998
<pre>
4989
4999
p { letter-spacing: 1em; }
4990
5000
span { letter-spacing: 2em; }
4991
5001
4992
- <p>a<span>b </span>c</p></pre>
5002
+ <p>a<span>bb </span>c</p></pre>
4993
5003
4994
- <p class="ls-ex"> a <span class="color-box"> b</span>   ;c</p>
5004
+ <p class="ls-ex"> a <span class="color-box"> b  b </span>   ;c</p>
4995
5005
4996
- <p> An inline box only includes
4997
- letter spacing between characters completely contained within that element:
5006
+ <p> This further implies that applying 'letter-spacing' to
5007
+ an element containing only a single character
5008
+ has no effect on the rendered result:
4998
5009
4999
5010
<pre>
5000
5011
p { letter-spacing: 1em; }
5012
+ span { letter-spacing: 2em; }
5001
5013
5002
- <p>a<span>bb</span>c</p></pre>
5003
-
5004
- <p class="ls-ex good"> a <span class="color-box"> b b</span>  c</p>
5005
-
5006
- <p> It is incorrect to include the letter spacing on the right or trailing edge of the element:
5014
+ <p>a<span>b</span>c</p></pre>
5007
5015
5008
- <p class="ls-ex bad "> a <span class="color-box"> b b  </span> c</p>
5016
+ <p class="ls-ex"> a <span class="color-box"> b</span>   c</p>
5009
5017
5010
- <p> Letter spacing is inserted <strong> after</strong> RTL reordering,
5011
- so the letter spacing applied to the inner span below has no effect,
5018
+ <p> Since letter spacing is inserted <strong> after</strong> RTL reordering,
5019
+ the letter spacing applied to the inner span below likewise has no effect,
5012
5020
since after reordering the "c" doesn't end up next to "א":
5013
5021
<pre>
5014
5022
p { letter-spacing: 1em; }
0 commit comments