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

The CSS Working Group just discussed `[css-text] text-spacing is very complicated`, and agreed to the following:

* `RESOLVED: Accept the proposal in the issue to split text-spacing into longhands.`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> -> https://github.com/w3c/csswg-drafts/issues/4246#issuecomment-1404738513<br>
&lt;TabAtkins> florian: myles said this prop is too complicated - too many values interacting in too many ways<br>
&lt;TabAtkins> florian: fantasai and i agree<br>
&lt;TabAtkins> florian: We proposed a shorthand/longhand combo of syntax that hopefully reduces the space fo syntax and limits it to a useful subset of behavior<br>
&lt;TabAtkins> florian: Proposal is in issue, might still be some bikeshedding<br>
&lt;myles> before: normal | none | auto | no-compress || [ trim-start | space-start | space-first ] || [ trim-end | space-end | allow-end ] || [ trim-adjacent | space-adjacent ] || ideograph-alpha || ideograph-numeric || punctuation<br>
&lt;TabAtkins> Rossen_: What simplification do we want to draw attention to?<br>
&lt;myles> after: text-spacing: normal | none | auto | &lt;'text-autospace'> || &lt;'text-spacing-trim'><br>
&lt;myles>   text-spacing-trim: auto | space-all |  trim-all | [ allow-end || space-first ]<br>
&lt;myles>   text-autospace: normal | auto | no-autospace |<br>
&lt;myles>                   [ ideograph-alpha || ideograph-numeric || punctuation ]<br>
&lt;myles>                   || [ insert | replace ]<br>
&lt;TabAtkins> fantasai: We split the prop into two longhands - text-spacing-trim and text-auto-space<br>
&lt;TabAtkins> fantasai: t-s-t is about trimming the blank half of full-width spacing in various cases<br>
&lt;TabAtkins> fantasai: t-a-t adds extra space in certain places<br>
&lt;TabAtkins> fantasai: We removed all the combos except for the ones we believe woudl actually be used, from t-s-t<br>
&lt;TabAtkins> fantasai: There were three props controlling start/mid/end individually, but most combos won't be used<br>
&lt;TabAtkins> fantasai: So we reduced the syntax sapce of what keywords are allowed to be combined. If we want to extend in the future that's possible.<br>
&lt;TabAtkins> fantasai: for t-a-s: we added insert/remove keywords which we can discuss in another issue<br>
&lt;TabAtkins> fantasai: Controls whether you only insert space where there's none, or if you can repalce adjacent space with the correct amount of spacing<br>
&lt;TabAtkins> fantasai: Could split this into a pair of properties too, controlling inserting vs adjusting, but for now they're together<br>
&lt;TabAtkins> fantasai: And text-spacing is a shorthand for these that takes all the props<br>
&lt;TabAtkins> myles: This seems like a good place to start iterating.<br>
&lt;TabAtkins> myles: we think we can start implementing as the bare minimum form<br>
&lt;TabAtkins> myles: we just resolved on the initial value - it's unclear how that will be represented with these two props. assume that's an oversight<br>
&lt;TabAtkins> florian: In old version there was a set of values for start/mid/end. space-first set the start.<br>
&lt;TabAtkins> florian: Here space-first is a variation on trim-all that trims everywhere but space at the first.<br>
&lt;TabAtkins> fantasai: Details are in the description. If you like it we can edit it into the spec.<br>
&lt;TabAtkins> myles: I think it's an improvement on what was there before.<br>
&lt;TabAtkins> Rossen_: Hearing no objections.<br>
&lt;TabAtkins> RESOLVED: Accept the proposal in the issue to split text-spacing into longhands.<br>
</details>


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


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

Received on Thursday, 2 February 2023 00:22:49 UTC