Re: [csswg-drafts] [css-text] Reconsidering the CSS letter-spacing model (#10193)

> An alternative could be to specify and implement the behavior proposed by @jfkthame, but also add a toggle to trim away the first and last half-spaces in the line

This looks much better. My original suggestion does look like an overkill.

> Making that opt-in is more compatible, opt-out gives better behavior by default.

I think making `trim` the default value has both better compat (as it doesn't break left alignment) and better behavior (as it fixes center alignment). The only compat risk I can think of is that line wrapping can be slightly different, but I don't see how this can be a real issue yet.

Or if we really want to be cautious about compat, then just add an `auto` option to let browsers keep their current behaviors.

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


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

Received on Wednesday, 17 April 2024 05:54:40 UTC