Re: [csswg-drafts] [css-text] Syntax for percentage-of-width-of-space for 'word-spacing' (#3232)

I think we have a few options here:

- Just use `<number>`
- Reuse `fr` units, define mathematical combinations with `<length-percentage>` to be allowed in this property.
- Mint a new unit, e.g. `pr` or whatever, define `<length-percentage-proportion>` or whatever
- Define a function like `space(<number>)` which inherits as itself and can be used inside calc() along with length-percentage.

If we're taking any of the new syntax options, we might consider also allowing bare `<number>` to work so that `tab-size` and `word-spacing` can share the same syntactic space for the same operation.

Please note that while in `tab-size` this always refers to the space character, in `word-spacing` it can apply to a variety of different characters, each individually. _In other words, even its used value is not a length._

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


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

Received on Tuesday, 15 February 2022 21:58:02 UTC