Skip to content

[css-text-4] The text-spacing: auto behavior should be made more predictable #9857

@MurakamiShinyu

Description

@MurakamiShinyu

To improve typography with CSS, I would encourage people to use text-spacing: auto, because other text-spacing (or text-spacing-trim and text-autospace properties) values such as trim-auto ideograph-alpha ideograph-numeric punctuation will be difficult to learn. However, if the auto behavior varies significantly by UA/platform, it cannot be used with confidence.

The current auto behavior is defined as:

The user agent chooses a set of typographically high quality spacing values. Different user agents running on different platforms may pick different values.

NOTE: These spacing values may or may not match OS platform conventions.

(https://drafts.csswg.org/css-text-4/#valdef-text-spacing-trim-auto, https://drafts.csswg.org/css-text-4/#valdef-text-autospace-auto)

I think we should add descriptions of the recommended auto behavior to make it more predictable. For example:

  • The text-spacing-trim: auto behavior should be the same as text-spacing-trim: trim-auto or typographically higher quality defined by UA/platform.

  • The text-autospace: auto behavior should be the same as text-autospace: ideograph-alpha ideograph-numeric punctuation or typographically higher quality defined by UA/platform.

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