Skip to content

Commit 2e1b99f

Browse files
committed
[css-text-4] Add text-spacing-trim: trim-all
See #8482
1 parent 3ef169e commit 2e1b99f

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

css-text-4/Overview.bs

+16-2
Original file line numberDiff line numberDiff line change
@@ -10379,7 +10379,7 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
1037910379
Values are defined as follows:
1038010380
1038110381
<pre class=prod>
10382-
<dfn><<spacing-trim>></dfn> = space-all | trim-auto | [ allow-end || space-first ]
10382+
<dfn><<spacing-trim>></dfn> = space-all | trim-auto | [ allow-end || space-first ] | trim-all
1038310383
</pre>
1038410384
1038510385
<dl dfn-for=text-spacing-trim dfn-type=value>
@@ -10447,6 +10447,15 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
1044710447
Otherwise as ''trim-auto''
1044810448
(unless ''space-first'' is also specified).
1044910449
10450+
<dt><dfn>trim-all</dfn>
10451+
<dd>
10452+
Set <a>fullwidth opening punctuation</a>,
10453+
<a>fullwidth closing punctuation</a>,
10454+
and <a>fullwidth middle dot punctuation</a>
10455+
with half-width glyphs,
10456+
without regards for the position within the line
10457+
nor for adjacent characters.
10458+
1045010459
<dt><dfn>auto</dfn>
1045110460
<dd>
1045210461
The user agent chooses a set of typographically high quality spacing values.
@@ -10510,7 +10519,10 @@ Fullwidth Punctuation Collapsing</h4>
1051010519
the font has proportional ideographs
1051110520
and the fullwidth advance width cannot be reliably determined by measuring glyphs.
1051210521
10513-
Unless 'text-spacing-trim' is set to ''space-all''
10522+
If 'text-spacing-trim' is ''trim-all'',
10523+
the UA must collapse the space typically associated with such full width glyphs
10524+
regardless of the context in which they appear.
10525+
Otherwise, unless 'text-spacing-trim' is set to ''space-all''
1051410526
(or the font has proportional fullwidth punctuation glyphs),
1051510527
the UA must collapse the space typically associated with such full width glyphs
1051610528
when placed adjacently on a line
@@ -12837,6 +12849,8 @@ Changes</h2>
1283712849
(since it can no longer depend on <code>word-boundary-detection</code>).
1283812850
and update supporting related mechanics.
1283912851
* Rename <code>word-boundary-expansion</code> to 'word-space-transform'
12852+
* Add ''trim-all'' to 'text-spacing-trim'.
12853+
(<a href="https://github.com/w3c/csswg-drafts/issues/8482">Issue 8482</a>)
1284012854
1284112855
Significant changes since the <a href="https://www.w3.org/TR/2023/WD-css-text-4-20230301/">1 March 2022 Working Draft</a> include:
1284212856
* Completed the translation of 'white-space' to multiple longhands by

0 commit comments

Comments
 (0)