Skip to content

Commit 251903d

Browse files
committed
[css-text-4] Trim smaller punctuation is closing-opening bracket pair. #1668
1 parent fdfdb16 commit 251903d

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

css-text-4/Overview.bs

+6-10
Original file line numberDiff line numberDiff line change
@@ -1291,24 +1291,20 @@ Fullwidth Punctuation Collapsing</h4>
12911291
Set <a>fullwidth opening punctuation</a> half-width if the previous character is
12921292
a <a>fullwidth opening punctuation</a>,
12931293
<a>fullwidth middle dot punctuation</a>,
1294-
<a>fullwidth closing punctuation</a>,
1295-
or ideographic space (U+3000).
1294+
or ideographic space (U+3000),
1295+
or if the previous character is a <a>fullwidth closing punctuation</a>
1296+
of an equivalent or larger 'font-size'.
12961297
Else set it full-width.
12971298
<li>
12981299
Set <a>fullwidth closing punctuation</a> half-width if the next character is
12991300
a <a>fullwidth closing punctuation</a>,
13001301
<a>fullwidth middle dot punctuation</a>,
1301-
or ideographic space (U+3000).
1302+
or ideographic space (U+3000),
1303+
or if the next character is a <a>fullwidth opening punctuation</a>
1304+
of a larger 'font-size'.
13021305
Else set it full-width.
13031306
</ul>
13041307

1305-
ISSUE: The above handling of closing&mdash;opening bracket pairs
1306-
matches [[JLREQ]]
1307-
but does not correctly handle the case of mismatched font sizes.
1308-
Earlier drafts trimmed 1/4 of each character, essentially averaging the spacing.
1309-
Other options are possible: use smallest, use largest, use common ancestor (like 'letter-spacing')...
1310-
See <a href="https://github.com/w3c/csswg-drafts/issues/1668#issuecomment-320212394">issue/discussion</a>.
1311-
13121308
<div class="example">
13131309
The following example table lists the punctuation pairs
13141310
affected by adjancent-pairs trimming.

0 commit comments

Comments
 (0)