Skip to content

Commit 38cc9f9

Browse files
committed
[css-text-4] Test coverage
1 parent 27580df commit 38cc9f9

File tree

1 file changed

+37
-4
lines changed

1 file changed

+37
-4
lines changed

css-text-4/Overview.bs

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10492,6 +10492,9 @@ CJK Punctuation Spacing: the 'text-spacing-trim' property</h3>
1049210492
text-spacing-trim/text-spacing-trim-colon-001.html
1049310493
text-spacing-trim/text-spacing-trim-combinations-001.html
1049410494
text-spacing-trim/text-spacing-trim-dot-001.html
10495+
text-spacing-trim/text-spacing-trim-quote-001.html
10496+
text-spacing-trim/text-spacing-trim-wrap-001.html
10497+
text-spacing-trim/text-spacing-trim-wrap-br-001.html
1049510498
</wpt>
1049610499
1049710500
<details class="note">
@@ -10569,10 +10572,7 @@ Fullwidth Punctuation Collapsing</h4>
1056910572
1057010573
The following aspects lack tests:
1057110574
* The UA must not use the hwid feature or otherwise substitute halfwidth forms as switching to halfwidth glyphs can change the glyph shape which is not acceptable here.
10572-
* adjacency to U+3000
10573-
* changing font sizes
10574-
* must not apply to proportional
10575-
* Pe and Ps classes"></wpt>
10575+
* changing font sizes"></wpt>
1057610576
1057710577
Typically, fullwidth characters have glyphs with the same advance width
1057810578
as a standard Han character (e.g. 水 U+6C34).
@@ -10609,6 +10609,10 @@ Fullwidth Punctuation Collapsing</h4>
1060910609
simultaneously full-width and half-width:
1061010610
the UA must not add or remove space to these glyphs.
1061110611
10612+
<wpt>
10613+
text-spacing-trim/text-spacing-trim-feature-001.html
10614+
</wpt>
10615+
1061210616
Note: The advance width of a standard Han character
1061310617
can be determined either from font metrics
1061410618
such as the OpenType <code>ideo</code> and <code>idtp</code> baselines for the opposite writing mode,
@@ -10634,19 +10638,48 @@ Fullwidth Punctuation Collapsing</h4>
1063410638
<li>
1063510639
Set <a>fullwidth opening punctuation</a> half-width if the previous character is any of:
1063610640
* a <a>fullwidth opening punctuation</a>
10641+
<wpt>
10642+
text-spacing-trim/text-spacing-trim-001.html
10643+
text-spacing-trim/text-spacing-trim-colon-001.html
10644+
</wpt>
1063710645
* a <a>fullwidth middle dot punctuation</a>
10646+
<wpt>
10647+
text-spacing-trim/text-spacing-trim-dot-001.html
10648+
</wpt>
1063810649
* an ideographic space (U+3000)
10650+
<wpt>
10651+
text-spacing-trim/text-spacing-trim-001.html
10652+
</wpt>
1063910653
* a <a>fullwidth closing punctuation</a> of an equivalent or larger 'font-size'
10654+
<wpt>
10655+
text-spacing-trim/text-spacing-trim-001.html
10656+
</wpt>
1064010657
* a character belonging to Unicode [=general category=] <code>Ps</code>
10658+
<wpt>
10659+
text-spacing-trim/text-spacing-trim-quote-001.html
10660+
text-spacing-trim/text-spacing-trim-narrow-001.html
10661+
</wpt>
1064110662
1064210663
Otherwise set it full-width.
1064310664
<li>
1064410665
Set <a>fullwidth closing punctuation</a> half-width if the next character is any of:
1064510666
* a <a>fullwidth closing punctuation</a>
10667+
<wpt>
10668+
text-spacing-trim/text-spacing-trim-001.html
10669+
</wpt>
1064610670
* a <a>fullwidth middle dot punctuation</a>
10671+
<wpt>
10672+
text-spacing-trim/text-spacing-trim-dot-001.html
10673+
</wpt>
1064710674
* an ideographic space (U+3000)
10675+
<wpt>
10676+
text-spacing-trim/text-spacing-trim-001.html
10677+
</wpt>
1064810678
* a <a>fullwidth opening punctuation</a> of a larger 'font-size'
1064910679
* a character belonging to Unicode [=general category=] <code>Pe</code>
10680+
<wpt>
10681+
text-spacing-trim/text-spacing-trim-narrow-001.html
10682+
</wpt>
1065010683
1065110684
Otherwise set it full-width.
1065210685
</ul>

0 commit comments

Comments
 (0)