Skip to content

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

@SebastianZ

Description

@SebastianZ

If the child text between flex and 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions