Skip to content

Commit

Permalink
[css-text] Change line-end behavior of text-spacing-trim: space-first
Browse files Browse the repository at this point in the history
  • Loading branch information
frivoal committed Dec 21, 2023
1 parent c749f96 commit 4b0fe57
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions css-text-4/Overview.bs
Expand Up @@ -10495,7 +10495,7 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
Set <a>fullwidth opening punctuation</a> with full-width glyphs (spaced)
on the first line the [=block container=]
and each line after a [=forced line break=].
Otherwise as ''trim-auto''.
Otherwise as ''text-spacing/normal''.
<wpt>
text-spacing-trim/text-spacing-trim-001.html
Expand Down Expand Up @@ -10539,6 +10539,15 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
to freely switch among the various spacing/indentation styles
without needing to alter the content.
See [[#japanese-start-edges]] for examples.
Additionally, the behavior at the end of lines is aligned
with the ''text-spacing-trim/normal'' and ''trim-start'' values
rather than ''text-spacing-trim/trim-auto'',
in that it only trims the glyphs
if they do not otherwise fit prior to justification.
While improving the typography in fewer cases,
it is closer to the legacy behavior of ''space-all''
which reduces compatibility concerns.
</details>
<dt><dfn>trim-start</dfn>
Expand Down Expand Up @@ -10597,11 +10606,10 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
<td>yes
<tr>
<th>''trim-start''
<td>only if would not fit
<td rowspan=2>only if would not fit
<tr>
<th>''space-first''
<td>yes except on the first line
<td>yes
<tr>
<th>''trim-all''
<td colspan=4>yes
Expand Down

0 comments on commit 4b0fe57

Please sign in to comment.