Re: [csswg-drafts] [css-text] Puzzling classification of some punctuation (#13777)

Then it needs to be more conditional, and they should be made to be part of this categories *if they are wide in the font*, not always. As written, this has some problematic consequences.

> In order to set the text as specified, the UA will need to either
>
> * trim (kern) the blank half of the glyphs, if they are given full-width and must be set half-width, or
> * add space to the glyphs, if they are given half-width and must be set full-width. 
…
> […] unless text-spacing-trim is set to [space-all](https://drafts.csswg.org/css-text-4/#valdef-text-spacing-trim-space-all) (or the font has proportional fullwidth punctuation glyphs), the UA must collapse the space typically associated with such full width glyphs when placed adjacently on a line as follows:
> Set [fullwidth opening punctuation](https://drafts.csswg.org/css-text-4/#fullwidth-opening-punctuation) half-width if the previous character is any of:
> * a [fullwidth opening punctuation](https://drafts.csswg.org/css-text-4/#fullwidth-opening-punctuation)
> * a [fullwidth middle dot punctuation](https://drafts.csswg.org/css-text-4/#fullwidth-middle-dot-punctuation)
> * an ideographic space (U+3000)
> * a [fullwidth closing punctuation](https://drafts.csswg.org/css-text-4/#fullwidth-closing-punctuation) of an equivalent or larger [font-size](https://drafts.csswg.org/css-fonts-4/#propdef-font-size)
> * a character belonging to Unicode [general category](https://drafts.csswg.org/css-text-4/#unicode-general-category) Ps
> Otherwise set it full-width.

Taken together, this appears to means that with the initial value of text-spacing trim, `He said: “hello[…]` should see the curly quote be set to full width, by adding space to the glyph. This would be most unexpected.

Shouldn't we add something like this:
> Also includes X and Y <ins>if they are represented by fullwidth glyphs in the font used to render them</ins>.

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13777#issuecomment-4229569856 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 11 April 2026 14:16:50 UTC