[csswg-drafts] [css-text-4][css-flex][css-grid] 'auto' value needed for text-space-trim to cover white space discarding between flex and grid items?

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

== [css-text-4][css-flex][css-grid] 'auto' value needed for text-space-trim to cover white space discarding between flex and grid items? ==
If the child text between [flex](https://drafts.csswg.org/css-flexbox/#flex-items) and [grid items](https://drafts.csswg.org/css-grid/#grid-items]  only consists of white space, it is not rendered.

This is as if `text-space-trim` was set to `discard-before discard-after` for those items. Though the default value of `text-space-trim` is `none`, which contradicts the whitespace discarding logic in flex and grid layout.

Therefore I think an `auto` value needs to be introduced for `text-space-trim` and be made the initial value.

The computed value may then still be `auto`, or be either `none` or `discard-before discard-after` depending on the layout type.

Sebastian

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

Received on Tuesday, 18 September 2018 11:44:37 UTC