Skip to content

Commit b4f1749

Browse files
committed
[css-text-4] Rename trim-auto to trim-both #10161
1 parent 0d371a3 commit b4f1749

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

css-text-4/Overview.bs

+17-17
Original file line numberDiff line numberDiff line change
@@ -10502,7 +10502,7 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
1050210502
Values are defined as follows:
1050310503
1050410504
<pre class=prod>
10505-
<dfn><<spacing-trim>></dfn> = space-all | normal | trim-auto | trim-start | space-first | trim-all
10505+
<dfn><<spacing-trim>></dfn> = space-all | normal | space-first | trim-start | trim-both | trim-all
1050610506
</pre>
1050710507
1050810508
<dl dfn-for=text-spacing-trim dfn-type=value>
@@ -10526,7 +10526,7 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
1052610526
and collapse spacing between punctuation glyphs
1052710527
<a href="#fullwidth-collapsing">as described below</a>.
1052810528
10529-
<dt><dfn>trim-auto</dfn>
10529+
<dt><dfn>trim-both</dfn>
1053010530
<dd>
1053110531
Set <a>fullwidth opening punctuation</a> with half-width glyphs (flush)
1053210532
at the start of each line;
@@ -10555,7 +10555,7 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
1055510555
<summary>This value exists for compat requirements.</summary>
1055610556
1055710557
This value exists to manage formatting of some existing Chinese and Japanese content,
10558-
for which ''trim-auto'' would have been appropriate typographically,
10558+
for which ''trim-both'' would have been appropriate typographically,
1055910559
except that they are already written
1056010560
to expect the first line to be set as for ''space-all''.
1056110561
@@ -10566,7 +10566,7 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
1056610566
but omits it when the paragraph begins with punctuation
1056710567
that is desired to hang in the indent
1056810568
in order to create the hanging punctuation effect.
10569-
Using ''trim-auto'' on the first line
10569+
Using ''trim-both'' on the first line
1057010570
would thus trim away the effective indent in such content
1057110571
and thus obscure that line's distinction
1057210572
as the first line of a new paragraph.
@@ -10586,7 +10586,7 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
1058610586
1058710587
Additionally, the behavior at the end of lines is aligned
1058810588
with the ''text-spacing-trim/normal'' and ''trim-start'' values
10589-
rather than ''text-spacing-trim/trim-auto'',
10589+
rather than ''text-spacing-trim/trim-both'',
1059010590
in that it only trims the glyphs
1059110591
if they do not otherwise fit prior to justification.
1059210592
While improving the typography in fewer cases,
@@ -10626,7 +10626,7 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
1062610626
1062710627
Note: These spacing values may or may not match OS platform conventions.
1062810628
10629-
ISSUE: Do we need ''text-spacing-trim/auto''? It would be weird for the author to choose platform-dependent behavior at the start of the first line, and it should otherwise use ''text-spacing-trim/trim-auto''.
10629+
ISSUE: Do we need ''text-spacing-trim/auto''? It would be weird for the author to choose platform-dependent behavior at the start of the first line, and it should otherwise use ''text-spacing-trim/trim-both''.
1063010630
</dl>
1063110631
1063210632
<div class=note>
@@ -10637,8 +10637,8 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
1063710637
<tr>
1063810638
<th>Value
1063910639
<th>Trim at line start
10640-
<th>Trim adjacent pairs
1064110640
<th>Trim at line end
10641+
<th>Trim adjacent pairs
1064210642
<th>Trim everywhere
1064310643
<tbody>
1064410644
<tr>
@@ -10647,19 +10647,18 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
1064710647
<tr>
1064810648
<th>''text-spacing-trim/normal''
1064910649
<td>no
10650+
<td rowspan=3>only if would not fit
1065010651
<td rowspan=4>yes
10651-
<td>only if would not fit
1065210652
<td rowspan=4>no
1065310653
<tr>
10654-
<th>''trim-auto''
10655-
<td rowspan=2>yes
10656-
<td>yes
10654+
<th>''space-first''
10655+
<td>yes except on the first line
1065710656
<tr>
1065810657
<th>''trim-start''
10659-
<td rowspan=2>only if would not fit
10658+
<td rowspan=2>yes
1066010659
<tr>
10661-
<th>''space-first''
10662-
<td>yes except on the first line
10660+
<th>''trim-both''
10661+
<td>yes
1066310662
<tr>
1066410663
<th>''trim-all''
1066510664
<td colspan=4>yes
@@ -11013,7 +11012,7 @@ Japanese Paragraph-start Conventions in CSS</h4>
1101311012
p { /* Flush alignment */
1101411013
margin: 0;
1101511014
text-indent: 1em;
11016-
text-spacing-trim: trim-auto;
11015+
text-spacing-trim: trim-both;
1101711016
}
1101811017
</pre>
1101911018
@@ -11033,7 +11032,7 @@ Japanese Paragraph-start Conventions in CSS</h4>
1103311032
p { /* Hanging alignment */
1103411033
margin: 0;
1103511034
text-indent: 1em;
11036-
text-spacing-trim: trim-auto;
11035+
text-spacing-trim: trim-both;
1103711036
hanging-punctuation: first;
1103811037
}
1103911038
</pre>
@@ -13113,7 +13112,8 @@ Changes</h2>
1311313112
Changes specific to Level 4 are listed below.
1311413113
1311513114
Significant changes since the <a href="https://www.w3.org/TR/2024/WD-css-text-4-20240219/">19 February 2024 Working Draft</a> include:
13116-
* None yet
13115+
* Renamed the 'text-spacing-trim' value <css>trim-auto</css> to ''trim-both''.
13116+
(<a href="https://github.com/w3c/csswg-drafts/issues/10161">Issue 10161</a>)
1311713117
1311813118
Significant changes since the <a href="https://www.w3.org/TR/2023/WD-css-text-4-20231020/">20 October 2023 Working Draft</a> include:
1311913119
* Restored accidentally deleted “and each line after a [=forced line break=]”

0 commit comments

Comments
 (0)