Re: [csswg-drafts] [css-values] Proposal: `sp` and `rsp` space glyph units (#10534)

I don't think justification would be relevant here; an `sp` unit would simply be based on the default advance of the space character of the first available font. It would be unaffected by things like kerning, letter-spacing, justification, contextual alternate glyphs, etc.

Whether a new unit is actually useful enough to justify its existence is unclear to me... in most cases, it seems like `ch` is equally usable, and I think examples such as

> Accurately increase word spacing `word-spacing: 1sp;`
> Accurately remove word spacing `word-spacing: -1sp;`

might be better addressed by allowing `word-spacing` to accept percentage values, which would resolve against the default word spacing.


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


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

Received on Monday, 8 July 2024 08:45:09 UTC