[csswg-drafts] [css-text] hanging-punctuation for aligning accounting numerals? (#12209)

hfhchan-plb has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-text] hanging-punctuation for aligning accounting numerals? ==
It seems to be a common issue mentioned on stack-overflow where people try to get accounting numerals to align.

Illustration:

![Image](https://github.com/user-attachments/assets/607fd0b3-3f5d-45b9-8fde-6f9ea5a596a0)

Unfortunately, `text-align: char` doesn't work in any browser.

Using `hanging-punctuation: last` with `text-align: end` to allow the closing bracket to hang off the line end would do wonders.

However, it doesn't work in Safari. Is this an implementation issue of Safari, or is this what the spec asks?

Testing using Safari:

<img width="711" alt="Image" src="https://github.com/user-attachments/assets/4df471bb-c3ae-4500-bbfe-7ce8fae34ef2" />

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12209 using your GitHub account


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

Received on Sunday, 18 May 2025 09:48:49 UTC