Skip to content

[css-text-3] Always hang trailing spaces to ensure interop under non-start alignment #3116

@fantasai

Description

@fantasai

Currently the spec says that UAs can either hang spaces at the end of the line or visually collapse spaces that overflow. This is fine for left-aligned text, it doesn't really affect layout, but for right-aligned or centered text, it affects alignment: UAs doing the former ignore the spaces for text alignment, but the latter include them (or some of them) when performing text alignment.

Proposal is to require hanging the spaces (this is a technical term in CSS Text meaning they aren't measured for fit or alignment in the line box), and to additionally allow the UA to visually-collapse any spaces that overflow. Behavior should be identical in left-aligned text, but will yield consistent behavior in centered and right-aligned text.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions