Skip to content

[css-text][css-sizing] When to/not to include preserved trailing spaces #3440

@kojiishi

Description

@kojiishi

We found browsers are inconsistent on the topic on pre-wrap. pre always include trailing spaces.

Feature Blink Edge Gecko WebKit
text-align: start Don't include Don't include Don't include Don't include
text-align: end / center Include Include Include Don't include
text-align: justify If !wrap Do not justify Do not justify Do not justify
min-content Don't include Don't include Include Don't include
max-content Include Include Include Include

Can we define these? Are there more cases we should cover?

Note: table updated on June 2, 2019. text-align: left added, and some values updated. Changes maybe from inaccurate old tests, or browsers updated, not sure.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions