@@ -7220,12 +7220,12 @@ Word Spacing: the 'word-spacing' property</h3>
7220
7220
7221
7221
<pre class="propdef">
7222
7222
Name : word-spacing
7223
- Value : normal | <<length>>
7223
+ Value : normal | <<length-percentage >>
7224
7224
Initial : normal
7225
7225
Applies to : text
7226
7226
Inherited : yes
7227
- Percentages : N/A
7228
- Computed value : an absolute length
7227
+ Percentages : relative to computed 'font-size', i.e. ''1em''
7228
+ Computed value : an absolute length and/or a percentage
7229
7229
Animation type : by computed value type
7230
7230
Canonical order : n/a
7231
7231
</pre>
@@ -7277,12 +7277,21 @@ Word Spacing: the 'word-spacing' property</h3>
7277
7277
word-spacing-100.xht
7278
7278
</wpt>
7279
7279
7280
- <dt> <dfn><length></dfn>
7280
+ <dt> <dfn><length-percentages ></dfn>
7281
7281
<dd>
7282
7282
Specifies extra spacing
7283
7283
<em> in addition to</em> the intrinsic inter-word spacing
7284
7284
defined by the font.
7285
7285
7286
+ Note: Percentages inherit intact,
7287
+ and are resolved against
7288
+ the computed 'font-size' of the current element
7289
+ (and thus represent a size relative to
7290
+ the size of the text to which they apply),
7291
+ unlike ''em'' units which are resolved against
7292
+ the computed 'font-size' of the element from which they inherit,
7293
+ as an absolute length.
7294
+
7286
7295
<wpt>
7287
7296
tab-size/tab-size-spacing-001.html
7288
7297
</wpt>
@@ -7400,11 +7409,12 @@ Tracking: the 'letter-spacing' property</h3>
7400
7409
7401
7410
<pre class="propdef">
7402
7411
Name : letter-spacing
7403
- Value : normal | <<length>>
7412
+ Value : normal | <<length-percentage >>
7404
7413
Initial : normal
7405
7414
Applies to : <a>inline boxes</a> and text
7406
7415
Inherited : yes
7407
- Computed value : an absolute length
7416
+ Percentages : relative to computed 'font-size', i.e. ''1em''
7417
+ Computed value : an absolute length and/or a percentage
7408
7418
Animation type : by computed value type
7409
7419
Canonical order : n/a
7410
7420
</pre>
@@ -7510,6 +7520,15 @@ Tracking: the 'letter-spacing' property</h3>
7510
7520
Values may be negative,
7511
7521
but there may be implementation-dependent limits.
7512
7522
7523
+ Note: Percentages inherit intact,
7524
+ and are resolved against
7525
+ the computed 'font-size' of the current element
7526
+ (and thus represent a size relative to
7527
+ the size of the text to which they apply),
7528
+ unlike ''em'' units which are resolved against
7529
+ the computed 'font-size' of the element from which they inherit,
7530
+ as an absolute length.
7531
+
7513
7532
<wpt>
7514
7533
tab-size/tab-size-spacing-001.html
7515
7534
</wpt>
@@ -10137,7 +10156,9 @@ Changes</h2>
10137
10156
Significant since the <a href="https://www.w3.org/TR/2019/WD-css-text-4-20191113/">2019 Working Draft</a> publication include:
10138
10157
<ul>
10139
10158
<li> Integrating the full text of [[CSS-TEXT-3]] .
10140
- <li>
10159
+ <li> Adding percentages to 'word-spacing' and 'letter-spacing'
10160
+ to represent sizes relative to the current 'font-size' .
10161
+ (<a href="https://github.com/w3c/csswg-drafts/issues/2165">Issue 2165</a> )
10141
10162
</ul>
10142
10163
10143
10164
<h3 class="no-num" id="changes-L3">
0 commit comments