[csswg-drafts] [css-text-4] split text-wrap: pretty | balance from text-wrap: wrap | nowrap (#9197)

fantasai has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-text-4] split text-wrap: pretty | balance from text-wrap: wrap | nowrap ==
The original intention of the `text-wrap` longhand of `white-space` was to host the `wrap` and `nowrap` values, i.e. control whether or not text wraps.

Along the way we added controls about _how_ it wraps: `balance`, `pretty`. And now people are discussing whether to add more controls here.

But probably the question of *how* something wraps should cascade independently of *whether* it wraps, similar to how `text-justify` is a separate property from `text-align: justify`.

Should we split out these values so that we have:

* white-space
   * white-space-collapse: collapse | preserve | etc.
   * something: wrap | nowrap
* otherthing: normal | balance | pretty | etc.

?

Possible names for these properties (I'm not sold on any of them): `text-wrap`, `line-wrap`, `inline-wrap`, `wrap-style`, `wrap-behavior`, ...

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9197 using your GitHub account


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

Received on Wednesday, 16 August 2023 04:28:50 UTC