[csswg-drafts] [css-text-4] (#9448)

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

== [css-text-4] ==
in https://github.com/w3c/csswg-drafts/issues/9102#issuecomment-1752201252_, we are working on the name of the onoff longhand property for `white-space` or `text-wrap`. The values are already decided as `wrap | nowrap`. 

I am suggesting a third value be added, `avoid-wrap` (or maybe just `avoid`). This would take the place of a separate (binary) `wrap-inside` property. It would also make the "onoff" property (whatever we call it) not be just a binary toggle, because it would have three values now. 

I think this is easier for authors than learning a new property (it's getting complicated enough anyway). Since wrap-inside: avoid is very similar to basically being a relaxed version of <text-wrap-onoff>: nowrap (provisional name), I think it fits more naturally in the same property. 

One implication of making this change is that the property value would be inherited, like the other values of the "onoff" property. But I think this is better anyway, so that if a paragraph is avoiding wraps where possible, so would its children (such as a long <b> element).

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


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

Received on Monday, 9 October 2023 01:44:17 UTC