Re: [csswg-drafts] [css-text] Add title case text transformation (#12526)

This requires some special rules and is generally restricted to English, as far as I know. It _might_ be applied to other languages, though in any case it requires grammatical knowledge or at least a list of words in each language that should be written in lowercase.
And, as far as I can see looking at different descriptions and tools like https://titlecaseconverter.com, there are several different definitions for how to title case.

So I don't think it's worth implementing directly into UAs as new keyword (or several) for `text-transform`. Though it might be something that could be achieved by extending custom transforms as proposed in #3132. See also the [proposed spec.](https://specs.rivoal.net/css-custom-tt/) by @frivoal.

This would at least require some logic for recognizing punctuation in the `@text-transform` rule, though.

Sebastian

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


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

Received on Friday, 25 July 2025 19:53:24 UTC