[csswg-drafts] [css-text][css-flexbox][css-grid] Rethinking values for wrap-before and wrap-after (#4035)

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

== [css-text][css-flexbox][css-grid] Rethinking values for wrap-before and wrap-after ==
CSS Text 4 currently defines [`wrap-before` and `wrap-after`](https://drafts.csswg.org/css-text-4/#wrap-before) with the values `auto`, `avoid`, `avoid-line`, `avoid-flex`, `line`, and `flex`.

I am wondering whether the values can be consolidated, especially `avoid-flex` and `flex` seem redundant to `avoid-line` and `line`.

It is also unclear to me what's the difference between `avoid` and `avoid-line`. As I understand it, both avoid line breaks before or after an inline-level box or a flex item.

Furthermore, the properties may also apply to other boxes in the future like grid items, so maybe a more general keyword than `line` could be used instead, like `wrap`.

Applying those changes the syntax would then shrink to `auto | avoid | wrap`.

Sebastian

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

Received on Friday, 14 June 2019 10:28:19 UTC