Skip to content

Commit 5b06862

Browse files
committed
[css-text] Change line-end behavior of text-spacing-trim: space-first
See w3c#9736
1 parent 207e931 commit 5b06862

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

css-text-4/Overview.bs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10497,7 +10497,7 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
1049710497
Set <a>fullwidth opening punctuation</a> with full-width glyphs (spaced)
1049810498
on the first line the [=block container=]
1049910499
and each line after a [=forced line break=].
10500-
Otherwise as ''trim-auto''.
10500+
Otherwise as ''text-spacing/normal''.
1050110501
1050210502
<wpt>
1050310503
text-spacing-trim/text-spacing-trim-001.html
@@ -10541,6 +10541,15 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
1054110541
to freely switch among the various spacing/indentation styles
1054210542
without needing to alter the content.
1054310543
See [[#japanese-start-edges]] for examples.
10544+
10545+
Additionally, the behavior at the end of lines is aligned
10546+
with the ''text-spacing-trim/normal'' and ''trim-start'' values
10547+
rather than ''text-spacing-trim/trim-auto'',
10548+
in that it only trims the glyphs
10549+
if they do not otherwise fit prior to justification.
10550+
While improving the typography in fewer cases,
10551+
it is closer to the legacy behavior of ''space-all''
10552+
which reduces compatibility concerns.
1054410553
</details>
1054510554
1054610555
<dt><dfn>trim-start</dfn>
@@ -10599,11 +10608,10 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
1059910608
<td>yes
1060010609
<tr>
1060110610
<th>''trim-start''
10602-
<td>only if would not fit
10611+
<td rowspan=2>only if would not fit
1060310612
<tr>
1060410613
<th>''space-first''
1060510614
<td>yes except on the first line
10606-
<td>yes
1060710615
<tr>
1060810616
<th>''trim-all''
1060910617
<td colspan=4>yes

0 commit comments

Comments
 (0)