Re: [csswg-drafts] [css-text-4] move "balance | stable | pretty" out of text-wrap (#9102)

The CSS Working Group just discussed `[css-text-4] move "balance | stable | pretty" out of text-wrap`, and agreed to the following:

* `RESOLVED: text-wrap becomes a shorthand for text-wrap-style and text-wrap-onoff, and only text-wrap-onoff is a longhand of white-space`

<details><summary>The full IRC log of that discussion</summary>
&lt;Rossen_> Zakim, open queue<br>
&lt;Zakim> ok, Rossen_, the speaker queue is open<br>
&lt;emeyer> fantasai: Originally, text-wrap had two values, wrap and no-wrap<br>
&lt;emeyer> …Since then, we’ve added various values for not just whather wrapping occurs, but what KIND of wrapping occurs<br>
&lt;emeyer> …The more we add, the worse it becomes that this is mixed with wrapping and how<br>
&lt;emeyer> …Some of the values should cascade, and some shouldn’t<br>
&lt;emeyer> …I would like to split `text-wrap` into two properties<br>
&lt;emeyer> …One takes wrap and no-wrap, and the other takes all the others<br>
&lt;florian> q+<br>
&lt;Rossen_> q?<br>
&lt;Rossen_> ack florian<br>
&lt;emeyer> …Since `text-wrap` is shipping, I’m happy to dedicate it to how things are wrapped, and move the wrap/no-wrap to another property<br>
&lt;lea> ;?<br>
&lt;emeyer> florian: Completely agree<br>
&lt;lea> q?<br>
&lt;emeyer> …We do have some tension in the naming<br>
&lt;emeyer> …How bad is it to ask Chrome to break here<br>
&lt;lea> q+<br>
&lt;emeyer> …When they asked about shipping, they said it would be okay to rename later<br>
&lt;fantasai> wrap-style vs text-wrap would indeed be more understandable if that's possible ...<br>
&lt;emeyer> …I would prefer that we kept `text-wrap` for yes/no on wrapping at use `wrap-style` for the others<br>
&lt;emeyer> iank_: I think the situation has changed from that time period<br>
&lt;emeyer> …I don’t know if renaming is viable<br>
&lt;emeyer> florian: This is going to make it more difficult to do this sort of thing int he future<br>
&lt;emeyer> …We asked explicitly if it would be okay, and now it’s been waklked back<br>
&lt;emeyer> lea: I agree these should be separated, and we shoudl have more granular control over wrapping<br>
&lt;emeyer> …I don’t tknow that we need to break backwards compatibility to do that<br>
&lt;emeyer> …most of these are useless without wrapping, so it seems like a win that some of these values cause wrapping<br>
&lt;emeyer> …If you say `text-wrap: balance`, we can be smart and also set `wrap`<br>
&lt;Rossen_> q?<br>
&lt;Rossen_> ack lea<br>
&lt;emeyer> fantasai: What you’re proposing is we keep `text-wrap` as a shorthand that incorporates text wrapping on/off?<br>
&lt;emeyer> lea: Yes<br>
&lt;emeyer> fantasai: That could work, we need a better name than `text-wrap-on-off`<br>
&lt;fantasai> s|text wrapping on/off|text-wrap-style and text-wrap-onoff/<br>
&lt;emeyer> Rossen_: Let’s bikeshed the name offline<br>
&lt;jfkthame> q+<br>
&lt;fantasai> s/text-wrap-onoff/, where text-wrap-onoff is also a longhand of white-space/<br>
&lt;Rossen_> ack jfkthame<br>
&lt;emeyer> jfkthame: I wanted to add something slightly orthogonal<br>
&lt;emeyer> …balance  really needs to be separated from stable versus pretty<br>
&lt;emeyer> florian: I’m unconvinced, it’s not obvious to me you’d want a stable balance that becomes stateful<br>
&lt;fantasai> +1 florian<br>
&lt;lea> s/…most of these are useless without wrapping, so it seems like a win that some of these values cause wrapping/…values like balance or pretty are useless without wrapping, so it seems like a win if setting text-wrap to one of these values would also enable wrapping (if you have no provided a separate wrap/no-wrap keyword)/<br>
&lt;emeyer> …Balance is a style of wrapping, it’s not clear that I want greedy balancing or whatever other options we could have<br>
&lt;lea> q?<br>
&lt;emeyer> jfkthame: The spec text  suggests balance is only attempted up to a limited number of lines, and it then falls back to wrap, but what kind of wrapping?<br>
&lt;emeyer> florian: We could fix this in the spec; do you mean that if you set balance, we ignore the style of wrapping unless we fall back?<br>
&lt;emeyer> jfkthame: You could specify stable or pretty or balance, but if you do balance and then there’s a fallback, what happens?<br>
&lt;emeyer> florian: So you’re saying you want balancing, but you want to be able to choose how you fall back.<br>
&lt;lea> There is a continuum between balance and greedy wrapping. Authors often want some degree of balancing but less "draconian" than full-blown balance. Not sure if the solution is to separate balance out, or to just provide more control over exactly how the balancing happens<br>
&lt;emeyer> jfkthame: I’m not entirely sure<br>
&lt;emeyer> florian: I suspect what you want is orthogonal so it’s probably find as a pullout<br>
&lt;Rossen_> ack fantasai<br>
&lt;Zakim> fantasai, you wanted to suggest that these don't need to be separate properties<br>
&lt;emeyer> fantasai: I don’t see that these need to be separate properties; we could allow multiple keywords<br>
&lt;emeyer> …I think balancing is interesting because an implementation could use different approaches<br>
&lt;emeyer> …We want flexibility for user agents<br>
&lt;emeyer> …I do really like Lea’s proposal and it seems to address cascading problems we have with the current setup<br>
&lt;emeyer> fantasai: Propose text-wrap becomes a shorthand for two properties, text-wrap-style and text-wrap-on-off<br>
&lt;fantasai> PROPOSED: text-wrap becomes a shorthand for text-wrap-style and text-wrap-onoff, and only text-wrap-onoff is a longhand of white-space<br>
&lt;emeyer> …ONLY text-wrap-on-off is a longhand for whitespace<br>
&lt;emeyer> …(names to be bikeshedded)<br>
&lt;emeyer> florian: Is the complete value space of text-wrap the same as currently?<br>
&lt;fantasai> text-wrap: &lt;'text-wrap-style'> || &lt;'text-wrap-onoff'><br>
&lt;emeyer> fantasai: Yes<br>
&lt;fantasai> text-wrap-onoff: wrap | nowrap<br>
&lt;emeyer> Rossen_: Hearing no objections…<br>
&lt;fantasai> text-wrap-style: stable | pretty | balance | auto | etc.<br>
&lt;emeyer> RESOVLED: text-wrap becomes a shorthand for text-wrap-style and text-wrap-onoff, and only text-wrap-onoff is a longhand of white-space<br>
&lt;emeyer> RESOLVED: text-wrap becomes a shorthand for text-wrap-style and text-wrap-onoff, and only text-wrap-onoff is a longhand of white-space<br>
&lt;emeyer> github-bit, take up https://github.com/w3c/csswg-drafts/issues/8539<br>
</details>


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


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

Received on Wednesday, 23 August 2023 16:51:15 UTC