Re: [csswg-drafts] [css-text] text-spacing is very complicated (#4246)

How about considering splitting into multiple longhands? I recall that was the original plan of @fantasai when this property gets more matured?

As suggested in https://github.com/w3c/csswg-drafts/issues/4246#issuecomment-531593782, similar to `font-variant`, having multiple longhands allows authors to change one of them without changing other values, such as enabling/disabling just `ideograph-numeric` oly for some text, or disabling `no-compress` only for a span.

Doing so might also address https://github.com/w3c/csswg-drafts/issues/7183, and it looks like there's a mild consensus on in at [TPAC](https://www.w3.org/2022/09/12-i18n-minutes.html#t07). /cc @r12a

For implementers, testing the parser for the 770 combinations of values is not an easy task without errors. Splitting to multiple longhands and using the existing already-tested mechnism for shothand helps.


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


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

Received on Thursday, 8 December 2022 06:22:17 UTC