Re: [csswg-drafts] [css-text] Custom character replacement rules for `text-transform` (#3132)

#4875 mentions the use case to insert characters at specific positions. I think the proposed `@text-transform` rule should also cover that case and other transformations that go beyond character replacements.

So far, credit card and phone numbers were mentioned in the other issue. I can imagine formatting other types of numbers like currencies might be a thing, as well. Specifically, adding thousands separators and changing the floating point based on the locale could be something that's covered by that at-rule.
Other use cases might be string replacements like in the [references mentioned earlier](https://github.com/w3c/csswg-drafts/issues/4875#issuecomment-622928955) by @faceless2.

Though the more complex the transformations are, the higher the impact is on the performance, of course.

Sebastian

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


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

Received on Wednesday, 1 December 2021 22:37:35 UTC